Package dev.orne.beans
Annotation Type ValidIdentityToken
@API(status=STABLE,
since="0.1")
@Target({METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,TYPE_USE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy={})
@Pattern(regexp="^[\\w-]*$")
@ReportAsSingleViolation
public @interface ValidIdentityToken
Validation for valid identity tokens.
Validates that the token, if non null, is not empty, starts with a valid
prefix and contains a valid token body.
- Since:
- 0.1
- Version:
- 1.0, 2020-05
- Author:
- (w) Iker Hernaez
-
Optional Element Summary
-
Element Details
-
message
String messageReturns the error message.- Returns:
- The error message.
- Default:
- "{dev.orne.beans.ValidIdentityToken.message}"
-
groups
Class<?>[] groupsReturns the validation groups.- Returns:
- The validation groups.
- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payloadReturns the validation client payload.- Returns:
- The validation client payload.
- Default:
- {}
-