Class WSTrustClientContractImpl
java.lang.Object
com.sun.xml.ws.security.trust.impl.WSTrustClientContractImpl
- All Implemented Interfaces:
WSTrustClientContract
- Author:
- WS-Trust-Implementation team
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of WSTrustClientContractImpl -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsChallenge(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr) Contains Challengecom.sun.xml.ws.security.trust.elements.BaseSTSResponsecreateRSTRForClientInitiatedIssuedTokenContext(com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.security.IssuedTokenContext context) Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.getComputedKeyAlgorithmFromProofToken(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr) Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwisevoidhandleRSTR(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request, com.sun.xml.ws.security.trust.elements.BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context) Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.com.sun.xml.ws.security.trust.elements.BaseSTSResponsehandleRSTRForNegotiatedExchange(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request, com.sun.xml.ws.security.trust.elements.BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context) Handle an RSTR returned by the Issuer and Respond to the Challenge
-
Constructor Details
-
WSTrustClientContractImpl
public WSTrustClientContractImpl()Creates a new instance of WSTrustClientContractImpl
-
-
Method Details
-
handleRSTR
public void handleRSTR(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request, com.sun.xml.ws.security.trust.elements.BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context) throws com.sun.xml.ws.api.security.trust.WSTrustException Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.- Specified by:
handleRSTRin interfaceWSTrustClientContract- Throws:
com.sun.xml.ws.api.security.trust.WSTrustException
-
handleRSTRForNegotiatedExchange
public com.sun.xml.ws.security.trust.elements.BaseSTSResponse handleRSTRForNegotiatedExchange(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request, com.sun.xml.ws.security.trust.elements.BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context) throws com.sun.xml.ws.api.security.trust.WSTrustException Handle an RSTR returned by the Issuer and Respond to the Challenge- Specified by:
handleRSTRForNegotiatedExchangein interfaceWSTrustClientContract- Throws:
com.sun.xml.ws.api.security.trust.WSTrustException
-
createRSTRForClientInitiatedIssuedTokenContext
public com.sun.xml.ws.security.trust.elements.BaseSTSResponse createRSTRForClientInitiatedIssuedTokenContext(com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.security.IssuedTokenContext context) throws com.sun.xml.ws.api.security.trust.WSTrustException Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.- Specified by:
createRSTRForClientInitiatedIssuedTokenContextin interfaceWSTrustClientContract- Throws:
com.sun.xml.ws.api.security.trust.WSTrustException
-
containsChallenge
public boolean containsChallenge(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr) Contains Challenge- Specified by:
containsChallengein interfaceWSTrustClientContract- Returns:
- true if the RSTR contains a SignChallenge/BinaryExchange or some other custom challenge recognized by this implementation.
-
getComputedKeyAlgorithmFromProofToken
public URI getComputedKeyAlgorithmFromProofToken(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr) Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise- Specified by:
getComputedKeyAlgorithmFromProofTokenin interfaceWSTrustClientContract
-