Annotation Interface AuthenticationContext


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface AuthenticationContext
Annotation that can be used to list Authentication Context Class Reference (ACR) values to enforce a required authentication level for the endpoint classes and methods. OAuth 2.0 Step Up Authentication Challenge Protocol is initiated when the access token does not have sufficient authentication strength.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Required ACR ('acr') claim values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Token age relative to the value of the 'auth_time' claim value.
  • Element Details

    • value

      String[] value
      Required ACR ('acr') claim values.
    • maxAge

      String maxAge
      Token age relative to the value of the 'auth_time' claim value.
      See Also:
      • for supported duration values
      Default:
      ""