Package overit.geocall.rs.annotations
Annotation Interface AuthenticationRequired
Annotation used to indicate that authentication is required for the annotated element.
This annotation can be applied to methods or classes in Spring
RestController.
Example usage:
@RestController
@AuthenticationRequired
public class SecureResource {
@GetMapping
public ResponseEntity getSecureResource() {
// Code here
}
}
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
Define the type of the authentication required by the annotated element. By defaultFeature.QUICKwill be used- Returns:
- the type of authentication required by the annotated element
- See Also:
- Default:
{"QUICK"}
-
logging
Specifies whether logging is enabled for the annotated element.- Returns:
trueif logging is enabled,falseotherwise- See Also:
- Default:
false
-