public class CspSecurityContext extends java.lang.Object implements CspAccessTokenSecurityContext
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
properties |
static java.lang.String |
REFRESH_TOKEN |
AUTHENTICATION_DATA_ID, AUTHENTICATION_SCHEME_ID| Constructor and Description |
|---|
CspSecurityContext(char[] refreshToken) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties() |
java.lang.Object |
getProperty(java.lang.String key) |
char[] |
getRefreshToken() |
boolean |
needsRefresh()
Method to check if access token needs to be refreshed.
|
void |
setAccessToken(char[] accessToken)
Used to set AccessToken in security context.
|
public static final java.lang.String REFRESH_TOKEN
protected final java.util.Map<java.lang.String,java.lang.Object> properties
public CspSecurityContext(char[] refreshToken)
refreshToken - credentials for CSP; must not be nullpublic void setAccessToken(char[] accessToken)
CspAccessTokenSecurityContextsetAccessToken in interface CspAccessTokenSecurityContextpublic boolean needsRefresh()
CspAccessTokenSecurityContextneedsRefresh in interface CspAccessTokenSecurityContextpublic char[] getRefreshToken()
nullpublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface ExecutionContext.SecurityContextpublic java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties in interface ExecutionContext.SecurityContextMap representing all the
properties