public abstract class ExtendedTokenContext extends java.lang.Object implements TokenContext
TokenContext
interface. It also has additional methods necessary for advanced security token operations.Constructor and Description |
---|
ExtendedTokenContext()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppliesTo()
Provides the token audience scope value
|
java.security.cert.X509Certificate[] |
getCertificateChain() |
java.util.List<Claim> |
getClaims()
Provides claims from the token context
|
java.util.ArrayList<java.lang.Object> |
getConfiguration()
Provides token context specific properties
|
java.lang.String |
getContentType() |
java.util.Date |
getCreationTime()
Provides token creation time
|
java.lang.String[] |
getCritical() |
java.util.List<Claim> |
getDerivableClaims() |
java.util.Date |
getExpirationTime()
Provides token expire time
|
java.lang.String |
getIssuer()
Provides token issuer identity
|
java.net.URL |
getJsonKeyURL() |
java.lang.String |
getJwtID() |
java.lang.String |
getKeyID() |
java.util.Map<java.lang.String,java.lang.Object> |
getOtherProperties()
Provides optional context specific properties
|
java.lang.String |
getRequestor()
Provides requestor identity
|
oracle.security.xml.Token |
getSecurityToken()
Deprecated.
|
java.lang.String |
getTokenType()
Provides the token type which is provider implementation specific.
|
TrustToken |
getTrustToken()
Provides the
TrustToken object |
java.net.URL |
getX509URL() |
void |
setAppliesTo(java.lang.String appliesTo)
Sets the scope for the token audience.
|
void |
setCertificateChain(java.security.cert.X509Certificate[] certChain)
In order to set the "x5c" header claim of JWT Token.
|
void |
setClaims(java.util.List<Claim> claims)
Sets claims to the token context
|
void |
setContentType(java.lang.String contentType)
In order to set the "cty" claim of JWT token.
|
void |
setCreationTime(java.util.Date creationTime)
Sets token creation time
|
void |
setCritical(java.lang.String[] critical)
In order to set the "crit" claim of JWT token.
|
void |
setDerivableClaims(java.util.List<Claim> claims) |
void |
setExpirationTime(java.util.Date expiryTime)
Sets token expire date
|
void |
setIssuer(java.lang.String issuer)
Sets issuer identity
|
void |
setJsonKeyURL(java.net.URL jsonKeyURL)
In order to set the "jku" claim of JWT token.
|
void |
setJwtID(java.lang.String jwtID)
In order to set the "jti" claim of JWT token.
|
void |
setKeyID(java.lang.String kid)
In order to the "kid" claim of JWT token.
|
void |
setOtherProperties(java.util.Map<java.lang.String,java.lang.Object> otherProps)
Sets optional context specific properties
|
void |
setRequestor(java.lang.String requestor)
Sets requestor identity
|
void |
setSecurityToken(oracle.security.xml.Token token)
Deprecated.
|
void |
setTokenType(java.lang.String tokenType)
Sets the token type.
|
void |
setTrustToken(TrustToken token)
Sets the trust token
|
void |
setX509URL(java.net.URL x509url)
In order to set the "x5u" claim of JWT token.
|
public void setIssuer(java.lang.String issuer)
setIssuer
in interface TokenContext
issuer
- Issuer identitypublic java.lang.String getIssuer()
getIssuer
in interface TokenContext
public void setRequestor(java.lang.String requestor)
setRequestor
in interface TokenContext
requestor
- Requestor identitypublic java.lang.String getRequestor()
getRequestor
in interface TokenContext
public void setTokenType(java.lang.String tokenType)
setTokenType
in interface TokenContext
tokenType
- The token type valuepublic java.lang.String getTokenType()
getTokenType
in interface TokenContext
public void setAppliesTo(java.lang.String appliesTo)
Constants#APPLIES_TO_DELIMITER
delimited string.setAppliesTo
in interface TokenContext
appliesTo
- Token audiencepublic java.lang.String getAppliesTo()
getAppliesTo
in interface TokenContext
public void setSecurityToken(oracle.security.xml.Token token)
setSecurityToken
in interface TokenContext
token
- The Token
objectpublic void setTrustToken(TrustToken token)
token
- The TrustToken
objectpublic oracle.security.xml.Token getSecurityToken()
Token
objectgetSecurityToken
in interface TokenContext
public TrustToken getTrustToken()
TrustToken
objectpublic void setCreationTime(java.util.Date creationTime)
setCreationTime
in interface TokenContext
creationTime
- Token creation timepublic java.util.Date getCreationTime()
getCreationTime
in interface TokenContext
public void setExpirationTime(java.util.Date expiryTime)
setExpirationTime
in interface TokenContext
expiryTime
- Token expire datepublic java.util.Date getExpirationTime()
getExpirationTime
in interface TokenContext
public java.util.Map<java.lang.String,java.lang.Object> getOtherProperties()
getOtherProperties
in interface TokenContext
public void setOtherProperties(java.util.Map<java.lang.String,java.lang.Object> otherProps)
public java.util.ArrayList<java.lang.Object> getConfiguration()
getConfiguration
in interface TokenContext
public void setClaims(java.util.List<Claim> claims)
claims
- List of claims to be setpublic java.util.List<Claim> getClaims()
public void setDerivableClaims(java.util.List<Claim> claims)
public java.util.List<Claim> getDerivableClaims()
public void setCertificateChain(java.security.cert.X509Certificate[] certChain)
certChain
-public java.security.cert.X509Certificate[] getCertificateChain()
public void setContentType(java.lang.String contentType)
contentType
-public java.lang.String getContentType()
public java.lang.String[] getCritical()
public void setCritical(java.lang.String[] critical)
critical
-public java.lang.String getJwtID()
public void setJwtID(java.lang.String jwtID)
jwtID
-public java.lang.String getKeyID()
public void setKeyID(java.lang.String kid)
kid
-public java.net.URL getX509URL()
public void setX509URL(java.net.URL x509url)
x509url
-public java.net.URL getJsonKeyURL()
public void setJsonKeyURL(java.net.URL jsonKeyURL)
jsonKeyURL
-