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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Returns the validation groups.
    Returns the error message.
    Class<? extends javax.validation.Payload>[]
    Returns the validation client payload.
  • Element Details

    • message

      String message
      Returns the error message.
      Returns:
      The error message.
      Default:
      "{dev.orne.beans.ValidIdentityTokenPrefix.message}"
    • groups

      Class<?>[] groups
      Returns the validation groups.
      Returns:
      The validation groups.
      Default:
      {}
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Returns the validation client payload.
      Returns:
      The validation client payload.
      Default:
      {}