Interface AuthnContext


public interface AuthnContext
The AuthnContext contains information relevant for the user with granted access.
  • Method Summary

    Modifier and Type
    Method
    Description
    This string represents the access token used for this context.
    long
    The time stamp in milliseconds since the epoch when this token was created.
    long
    The lifetime of this authentication context in seconds.
    The scopes that were granted for this access context
    The extension properties
    javax.servlet.http.HttpServletRequest
    The HTTPServletRequest from the endpoint invoked
    javax.servlet.http.HttpServletResponse
    The HTTPServletResponse from the endpoint invoked
    The name of the user who authorized this token
  • Method Details

    • getAccessToken

      String getAccessToken()
      This string represents the access token used for this context.
      Returns:
      the access token
    • getGrantedScopes

      String[] getGrantedScopes()
      The scopes that were granted for this access context
      Returns:
      the grantedScopes
    • getCreatedAt

      long getCreatedAt()
      The time stamp in milliseconds since the epoch when this token was created. This can be used along with the lifetime to calculate an expiration time.
      Returns:
      the createdAt in milliseconds
    • getExpiresIn

      long getExpiresIn()
      The lifetime of this authentication context in seconds.
      Returns:
      the expiresIn in seconds
    • getUserName

      String getUserName()
      The name of the user who authorized this token
      Returns:
      the user name
    • getRequest

      javax.servlet.http.HttpServletRequest getRequest()
      The HTTPServletRequest from the endpoint invoked
      Returns:
      the request
    • getResponse

      javax.servlet.http.HttpServletResponse getResponse()
      The HTTPServletResponse from the endpoint invoked
      Returns:
      the response
    • getProperties

      Map<String,String[]> getProperties()
      The extension properties
      Returns:
      the properties