|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.security.impl.IssuedTokenContextImpl
public class IssuedTokenContextImpl
| Field Summary |
|---|
| Fields inherited from interface com.sun.xml.ws.security.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 Summary | |
|---|---|
IssuedTokenContextImpl()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IssuedTokenContextImpl()
| Method Detail |
|---|
public X509Certificate getRequestorCertificate()
IssuedTokenContext
getRequestorCertificate in interface IssuedTokenContextpublic void setRequestorCertificate(X509Certificate cert)
IssuedTokenContext
setRequestorCertificate in interface IssuedTokenContextpublic Subject getRequestorSubject()
getRequestorSubject in interface IssuedTokenContextpublic void setRequestorSubject(Subject subject)
setRequestorSubject in interface IssuedTokenContextpublic String getRequestorUsername()
IssuedTokenContext
getRequestorUsername in interface IssuedTokenContextpublic void setRequestorUsername(String username)
IssuedTokenContext
setRequestorUsername in interface IssuedTokenContextpublic void setSecurityToken(Token securityToken)
IssuedTokenContext
setSecurityToken in interface IssuedTokenContextpublic Token getSecurityToken()
IssuedTokenContext
getSecurityToken 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 IssuedTokenContext
public Token getAssociatedProofToken()
IssuedTokenContext
getAssociatedProofToken in interface IssuedTokenContextpublic Token getAttachedSecurityTokenReference()
IssuedTokenContext
getAttachedSecurityTokenReference in interface IssuedTokenContextpublic void setAttachedSecurityTokenReference(Token secTokenReference)
IssuedTokenContext
setAttachedSecurityTokenReference in interface IssuedTokenContextpublic Token getUnAttachedSecurityTokenReference()
IssuedTokenContext
getUnAttachedSecurityTokenReference in interface IssuedTokenContextpublic void setUnAttachedSecurityTokenReference(Token secTokenReference)
IssuedTokenContext
setUnAttachedSecurityTokenReference 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 a
setOtherPartyEntropy in interface IssuedTokenContextpublic Object getOtherPartyEntropy()
IssuedTokenContext
getOtherPartyEntropy in interface IssuedTokenContext
public Key getDecipheredOtherPartyEntropy(Key privKey)
throws XWSSecurityException
IssuedTokenContext
getDecipheredOtherPartyEntropy in interface IssuedTokenContextXWSSecurityExceptionpublic void setSelfEntropy(Object selfEntropy)
IssuedTokenContext
setSelfEntropy in interface IssuedTokenContextpublic Object getSelfEntropy()
IssuedTokenContext
getSelfEntropy in interface IssuedTokenContextpublic URI getComputedKeyAlgorithmFromProofToken()
IssuedTokenContext
getComputedKeyAlgorithmFromProofToken in interface IssuedTokenContextpublic void setComputedKeyAlgorithmFromProofToken(URI computedKeyAlgorithm)
public void setProofKey(byte[] key)
IssuedTokenContext
setProofKey in interface IssuedTokenContextpublic byte[] getProofKey()
IssuedTokenContext
getProofKey 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()
IssuedTokenContext
getExpirationTime in interface IssuedTokenContextpublic void setCreationTime(Date date)
IssuedTokenContext
setCreationTime in interface IssuedTokenContextpublic void setExpirationTime(Date date)
IssuedTokenContext
setExpirationTime in interface IssuedTokenContextpublic void setEndpointAddress(String endPointAddress)
setEndpointAddress in interface IssuedTokenContextpublic String getEndpointAddress()
getEndpointAddress in interface IssuedTokenContextpublic void destroy()
IssuedTokenContext
destroy in interface IssuedTokenContextpublic SecurityContextTokenInfo getSecurityContextTokenInfo()
IssuedTokenContext
getSecurityContextTokenInfo in interface IssuedTokenContextpublic void setSecurityContextTokenInfo(SecurityContextTokenInfo sctInfo)
IssuedTokenContext
setSecurityContextTokenInfo 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 IssuedTokenContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||