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 null
public void setAccessToken(char[] accessToken)
CspAccessTokenSecurityContext
setAccessToken
in interface CspAccessTokenSecurityContext
public boolean needsRefresh()
CspAccessTokenSecurityContext
needsRefresh
in interface CspAccessTokenSecurityContext
public char[] getRefreshToken()
null
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface ExecutionContext.SecurityContext
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties
in interface ExecutionContext.SecurityContext
Map
representing all the
properties