Interface AuthnContext
-
public interface AuthnContext
The AuthnContext contains information relevant for the user with granted access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAccessToken()
This string represents the access token used for this context.long
getCreatedAt()
The time stamp in milliseconds since the epoch when this token was created.long
getExpiresIn()
The lifetime of this authentication context in seconds.java.lang.String[]
getGrantedScopes()
The scopes that were granted for this access contextjava.util.Map<java.lang.String,java.lang.String[]>
getProperties()
The extension propertiesjavax.servlet.http.HttpServletRequest
getRequest()
The HTTPServletRequest from the endpoint invokedjavax.servlet.http.HttpServletResponse
getResponse()
The HTTPServletResponse from the endpoint invokedjava.lang.String
getUserName()
The name of the user who authorized this token
-
-
-
Method Detail
-
getAccessToken
java.lang.String getAccessToken()
This string represents the access token used for this context.- Returns:
- the access token
-
getGrantedScopes
java.lang.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
java.lang.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
java.util.Map<java.lang.String,java.lang.String[]> getProperties()
The extension properties- Returns:
- the properties
-
-