Package dev.orne.beans
Annotation Type ValidIdentityTokenPrefix
@API(status=STABLE,
since="0.1")
@Target({METHOD,FIELD,PARAMETER,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy={})
@Pattern(regexp="^[\\w-]*$")
@ReportAsSingleViolation
public @interface ValidIdentityTokenPrefix
Validation for valid identity token prefixes.
Validates that the token, if non null, is not empty and contains only
US-ASCII alpha characters.
- 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.ValidIdentityTokenPrefix.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:
- {}
-