com.sun.xml.ws.security.trust.impl
Class WSTrustClientContractImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.WSTrustClientContractImpl
All Implemented Interfaces:
WSTrustClientContract

public class WSTrustClientContractImpl
extends java.lang.Object
implements WSTrustClientContract


Constructor Summary
WSTrustClientContractImpl()
          Creates a new instance of WSTrustClientContractImpl
 
Method Summary
 boolean containsChallenge(RequestSecurityTokenResponse rstr)
          Contains Challenge
 BaseSTSResponse createRSTRForClientInitiatedIssuedTokenContext(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.
 java.net.URI getComputedKeyAlgorithmFromProofToken(RequestSecurityTokenResponse rstr)
          Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise
 void handleRSTR(BaseSTSRequest request, BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context)
          Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.
 BaseSTSResponse handleRSTRForNegotiatedExchange(BaseSTSRequest request, BaseSTSResponse response, com.sun.xml.ws.security.IssuedTokenContext context)
          Handle an RSTR returned by the Issuer and Respond to the Challenge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTrustClientContractImpl

public WSTrustClientContractImpl()
Creates a new instance of WSTrustClientContractImpl

Method Detail

handleRSTR

public void handleRSTR(BaseSTSRequest request,
                       BaseSTSResponse response,
                       com.sun.xml.ws.security.IssuedTokenContext context)
                throws WSTrustException
Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.

Specified by:
handleRSTR in interface WSTrustClientContract
Throws:
WSTrustException

handleRSTRForNegotiatedExchange

public BaseSTSResponse handleRSTRForNegotiatedExchange(BaseSTSRequest request,
                                                       BaseSTSResponse response,
                                                       com.sun.xml.ws.security.IssuedTokenContext context)
                                                throws WSTrustException
Handle an RSTR returned by the Issuer and Respond to the Challenge

Specified by:
handleRSTRForNegotiatedExchange in interface WSTrustClientContract
Throws:
WSTrustException

createRSTRForClientInitiatedIssuedTokenContext

public BaseSTSResponse createRSTRForClientInitiatedIssuedTokenContext(com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                                      com.sun.xml.ws.security.IssuedTokenContext context)
                                                               throws WSTrustException
Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.

Specified by:
createRSTRForClientInitiatedIssuedTokenContext in interface WSTrustClientContract
Throws:
WSTrustException

containsChallenge

public boolean containsChallenge(RequestSecurityTokenResponse rstr)
Contains Challenge

Specified by:
containsChallenge in interface WSTrustClientContract
Returns:
true if the RSTR contains a SignChallenge/BinaryExchange or some other custom challenge recognized by this implementation.

getComputedKeyAlgorithmFromProofToken

public java.net.URI getComputedKeyAlgorithmFromProofToken(RequestSecurityTokenResponse rstr)
Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise

Specified by:
getComputedKeyAlgorithmFromProofToken in interface WSTrustClientContract