Annotation Interface ProtectedWithClaims


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface ProtectedWithClaims
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Required claims in token in key=value format.
    boolean
    How to check for the presence of claims, default is false which will require all claims in the list to be present in token.
  • Element Details

    • claimMap

      String[] claimMap
      Required claims in token in key=value format. If the value is an asterisk (*), it checks that the required key is present.
      Returns:
      array containing claims as key=value
      Default:
      {}
    • combineWithOr

      boolean combineWithOr
      How to check for the presence of claims, default is false which will require all claims in the list to be present in token. If set to true, any claim in the list will suffice.
      Returns:
      boolean
      Default:
      false