public class IssuedTokenContextImpl extends Object implements IssuedTokenContext
AUTHN_CONTEXT, CLAIMED_ATTRUBUTES, CONFIRMATION_KEY_INFO, CONFIRMATION_METHOD, KEY_WRAP_ALGORITHM, STATUS, STS_CERTIFICATE, STS_PRIVATE_KEY, TARGET_SERVICE_CERTIFICATE, WS_TRUST_VERSION| Constructor and Description |
|---|
IssuedTokenContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the IssuedTokenContext.
|
String |
getAppliesTo() |
Token |
getAssociatedProofToken()
get the Proof Token (if any) associated with the SecurityToken, null otherwise
|
Token |
getAttachedSecurityTokenReference()
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as
|
String |
getAuthnContextClass() |
String |
getCanonicalizationAlgorithm() |
URI |
getComputedKeyAlgorithmFromProofToken()
Return the
|
Date |
getCreationTime() |
Key |
getDecipheredOtherPartyEntropy(Key privKey)
Get the Entropy if any provided by the other party, null otherwise
If the Entropy was specified as an
|
String |
getEncryptionAlgorithm() |
String |
getEncryptWith() |
String |
getEndpointAddress()
get the endpoint address
|
Date |
getExpirationTime()
get the Expiration Time for this Token if any
|
String |
getKeyType() |
Object |
getOtherPartyEntropy()
Get the Entropy if any provided by the Other Party, null otherwise
|
Map<String,Object> |
getOtherProperties() |
byte[] |
getProofKey()
get the SecureConversation ProofToken as a byte[] array
|
KeyPair |
getProofKeyPair() |
X509Certificate |
getRequestorCertificate()
Requestor Certificate(s)
|
Subject |
getRequestorSubject() |
String |
getRequestorUsername()
Requestor username if any
|
SecurityContextTokenInfo |
getSecurityContextTokenInfo()
Get the SecurityContextTokenInfo for this Token if any.
|
ArrayList<Object> |
getSecurityPolicy()
get the SecurityPolicy to be applied for the request or response
to which this SecurityContext corresponds to
This allows the Client and/or the Service (WSP/STS) to dynamically inject
policy to be applied.
|
Token |
getSecurityToken()
Depending on the
|
Object |
getSelfEntropy()
Get self Entropy if set, null otherwise
|
String |
getSignatureAlgorithm() |
String |
getSignWith() |
Token |
getTarget() |
String |
getTokenIssuer() |
String |
getTokenType() |
Token |
getUnAttachedSecurityTokenReference()
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as
|
void |
setAppliesTo(String appliesTo) |
void |
setAssociatedProofToken(Token associatedProofToken)
Set the Proof Token Associated with the SecurityToken
|
void |
setAttachedSecurityTokenReference(Token secTokenReference)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as
|
void |
setAuthnContextClass(String authType) |
void |
setCanonicalizationAlgorithm(String canonAlg) |
void |
setComputedKeyAlgorithmFromProofToken(URI computedKeyAlgorithm) |
void |
setCreationTime(Date date)
set the creation Time of the IssuedToken
|
void |
setEncryptionAlgorithm(String encAlg) |
void |
setEncryptWith(String encryptWithAlgo) |
void |
setEndpointAddress(String endPointAddress)
set the endpointaddress
|
void |
setExpirationTime(Date date)
set the Expiration Time for this Token if any.
|
void |
setKeyType(String keyType) |
void |
setOtherPartyEntropy(Object otherPartyEntropy)
Set the Entropy information provided by the other Part (if any)
|
void |
setProofKey(byte[] key)
set the SecureConversation ProofToken as a byte[] array
|
void |
setProofKeyPair(KeyPair keys) |
void |
setRequestorCertificate(X509Certificate cert)
Append the Requestor Certificate that was used in an
incoming message.
|
void |
setRequestorSubject(Subject subject) |
void |
setRequestorUsername(String username)
set requestor username
|
void |
setSecurityContextTokenInfo(SecurityContextTokenInfo sctInfo)
set the SecurityContextTokenInfo for this Token if any.
|
void |
setSecurityToken(Token securityToken)
Depending on the
|
void |
setSelfEntropy(Object selfEntropy)
Set self Entropy
|
void |
setSignatureAlgorithm(String sigAlg) |
void |
setSignWith(String signWithAlgo) |
void |
setTarget(Token target) |
void |
setTokenIssuer(String issuer) |
void |
setTokenType(String tokenType) |
void |
setUnAttachedSecurityTokenReference(Token secTokenReference)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as
|
public X509Certificate getRequestorCertificate()
IssuedTokenContextgetRequestorCertificate in interface IssuedTokenContextpublic void setRequestorCertificate(X509Certificate cert)
IssuedTokenContextsetRequestorCertificate in interface IssuedTokenContextpublic Subject getRequestorSubject()
getRequestorSubject in interface IssuedTokenContextpublic void setRequestorSubject(Subject subject)
setRequestorSubject in interface IssuedTokenContextpublic String getRequestorUsername()
IssuedTokenContextgetRequestorUsername in interface IssuedTokenContextpublic void setRequestorUsername(String username)
IssuedTokenContextsetRequestorUsername in interface IssuedTokenContextpublic void setSecurityToken(Token securityToken)
IssuedTokenContextsetSecurityToken in interface IssuedTokenContextpublic Token getSecurityToken()
IssuedTokenContextgetSecurityToken in interface IssuedTokenContextpublic void setAssociatedProofToken(Token associatedProofToken)
IssuedTokenContext
when the SecurityToken is a SecurityContext token (as defined in
WS-SecureConversation) and Derived Keys are being used then
the Proof Token is the
setAssociatedProofToken in interface IssuedTokenContextpublic Token getAssociatedProofToken()
IssuedTokenContextgetAssociatedProofToken in interface IssuedTokenContextpublic Token getAttachedSecurityTokenReference()
IssuedTokenContextgetAttachedSecurityTokenReference in interface IssuedTokenContextpublic void setAttachedSecurityTokenReference(Token secTokenReference)
IssuedTokenContextsetAttachedSecurityTokenReference in interface IssuedTokenContextpublic Token getUnAttachedSecurityTokenReference()
IssuedTokenContextgetUnAttachedSecurityTokenReference in interface IssuedTokenContextpublic void setUnAttachedSecurityTokenReference(Token secTokenReference)
IssuedTokenContextsetUnAttachedSecurityTokenReference in interface IssuedTokenContextpublic ArrayList<Object> getSecurityPolicy()
IssuedTokenContextNote: Inserting an un-solicited RSTR into a SOAP Header can also be expressed as a policy and the subsequent requirement to sign the RSTR will also be expressed as a policy
TODO: There is no policy today to insert a specific element to a SOAP Header, we need to extend the policy definitions in XWS-Security.getSecurityPolicy in interface IssuedTokenContextpublic void setOtherPartyEntropy(Object otherPartyEntropy)
IssuedTokenContextWS-Trust allows requestor to provide input to key material in the request. The requestor might do this to satisfy itself as to the degree of entropy(cyrptographic randomness) of atleast some of the material used to generate the actual Key.
For composite Keys Entropy can be set by both parties, the concrete entropy element can be asetOtherPartyEntropy in interface IssuedTokenContextpublic Object getOtherPartyEntropy()
IssuedTokenContextgetOtherPartyEntropy in interface IssuedTokenContextpublic Key getDecipheredOtherPartyEntropy(Key privKey) throws XWSSecurityException
IssuedTokenContextgetDecipheredOtherPartyEntropy in interface IssuedTokenContextXWSSecurityExceptionpublic void setSelfEntropy(Object selfEntropy)
IssuedTokenContextsetSelfEntropy in interface IssuedTokenContextpublic Object getSelfEntropy()
IssuedTokenContextgetSelfEntropy in interface IssuedTokenContextpublic URI getComputedKeyAlgorithmFromProofToken()
IssuedTokenContextgetComputedKeyAlgorithmFromProofToken in interface IssuedTokenContextpublic void setComputedKeyAlgorithmFromProofToken(URI computedKeyAlgorithm)
public void setProofKey(byte[] key)
IssuedTokenContextsetProofKey in interface IssuedTokenContextpublic byte[] getProofKey()
IssuedTokenContextgetProofKey in interface IssuedTokenContextpublic void setProofKeyPair(KeyPair keys)
setProofKeyPair in interface IssuedTokenContextpublic KeyPair getProofKeyPair()
getProofKeyPair in interface IssuedTokenContextpublic void setAuthnContextClass(String authType)
setAuthnContextClass in interface IssuedTokenContextpublic String getAuthnContextClass()
getAuthnContextClass in interface IssuedTokenContextpublic Date getCreationTime()
getCreationTime in interface IssuedTokenContextpublic Date getExpirationTime()
IssuedTokenContextgetExpirationTime in interface IssuedTokenContextpublic void setCreationTime(Date date)
IssuedTokenContextsetCreationTime in interface IssuedTokenContextpublic void setExpirationTime(Date date)
IssuedTokenContextsetExpirationTime in interface IssuedTokenContextpublic void setEndpointAddress(String endPointAddress)
setEndpointAddress in interface IssuedTokenContextpublic String getEndpointAddress()
getEndpointAddress in interface IssuedTokenContextpublic void destroy()
IssuedTokenContextdestroy in interface IssuedTokenContextpublic SecurityContextTokenInfo getSecurityContextTokenInfo()
IssuedTokenContextgetSecurityContextTokenInfo in interface IssuedTokenContextpublic void setSecurityContextTokenInfo(SecurityContextTokenInfo sctInfo)
IssuedTokenContextsetSecurityContextTokenInfo in interface IssuedTokenContextpublic Map<String,Object> getOtherProperties()
getOtherProperties in interface IssuedTokenContextpublic void setTokenType(String tokenType)
setTokenType in interface IssuedTokenContextpublic String getTokenType()
getTokenType in interface IssuedTokenContextpublic void setKeyType(String keyType)
setKeyType in interface IssuedTokenContextpublic String getKeyType()
getKeyType in interface IssuedTokenContextpublic void setAppliesTo(String appliesTo)
setAppliesTo in interface IssuedTokenContextpublic String getAppliesTo()
getAppliesTo in interface IssuedTokenContextpublic void setTokenIssuer(String issuer)
setTokenIssuer in interface IssuedTokenContextpublic String getTokenIssuer()
getTokenIssuer in interface IssuedTokenContextpublic void setSignatureAlgorithm(String sigAlg)
setSignatureAlgorithm in interface IssuedTokenContextsigAlg - : signature algorithm to use to sign IssuedTokenpublic String getSignatureAlgorithm()
getSignatureAlgorithm in interface IssuedTokenContextpublic void setEncryptionAlgorithm(String encAlg)
setEncryptionAlgorithm in interface IssuedTokenContextencAlg - : The encryption algorithm to use to encrypt IssuedTokenpublic String getEncryptionAlgorithm()
getEncryptionAlgorithm in interface IssuedTokenContextpublic void setCanonicalizationAlgorithm(String canonAlg)
setCanonicalizationAlgorithm in interface IssuedTokenContextcanonAlg - : The canonicalization algorithm to use when signing IssuedTokenpublic String getCanonicalizationAlgorithm()
getCanonicalizationAlgorithm in interface IssuedTokenContextpublic void setSignWith(String signWithAlgo)
setSignWith in interface IssuedTokenContextsignWithAlgo - : The signature algorithm the client intends to use when using ProofKey to sign the application messagepublic String getSignWith()
getSignWith in interface IssuedTokenContextpublic void setEncryptWith(String encryptWithAlgo)
setEncryptWith in interface IssuedTokenContextencryptWithAlgo - The encryption algorithm the client intends to use when using ProofKey to encrypt the application messagepublic String getEncryptWith()
getEncryptWith in interface IssuedTokenContextpublic void setTarget(Token target)
setTarget in interface IssuedTokenContextpublic Token getTarget()
getTarget in interface IssuedTokenContextCopyright © 2005–2017 Oracle Corporation. All rights reserved.