com.sun.xml.ws.security.secconv
Class WSSCClientContract

java.lang.Object
  extended by com.sun.xml.ws.security.secconv.WSSCClientContract

public class WSSCClientContract
extends java.lang.Object


Constructor Summary
WSSCClientContract()
           
 
Method Summary
 boolean containsChallenge(RequestSecurityTokenResponse rstr)
          Contains Challenge
 RequestSecurityTokenResponse 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(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, com.sun.xml.ws.security.IssuedTokenContext context)
          Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.
 void handleRSTRC(RequestSecurityToken rst, RequestSecurityTokenResponseCollection rstrc, com.sun.xml.ws.security.IssuedTokenContext context)
          Handle an RSTRC returned by the Issuer and update Token information into the IssuedTokenContext.
 RequestSecurityTokenResponse handleRSTRForNegotiatedExchange(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, 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

WSSCClientContract

public WSSCClientContract()
Method Detail

handleRSTR

public void handleRSTR(RequestSecurityToken rst,
                       RequestSecurityTokenResponse rstr,
                       com.sun.xml.ws.security.IssuedTokenContext context)
                throws WSSecureConversationException
Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.

Throws:
WSSecureConversationException

handleRSTRC

public void handleRSTRC(RequestSecurityToken rst,
                        RequestSecurityTokenResponseCollection rstrc,
                        com.sun.xml.ws.security.IssuedTokenContext context)
                 throws WSSecureConversationException
Handle an RSTRC returned by the Issuer and update Token information into the IssuedTokenContext.

Throws:
WSSecureConversationException

handleRSTRForNegotiatedExchange

public RequestSecurityTokenResponse handleRSTRForNegotiatedExchange(RequestSecurityToken rst,
                                                                    RequestSecurityTokenResponse rstr,
                                                                    com.sun.xml.ws.security.IssuedTokenContext context)
                                                             throws WSSecureConversationException
Handle an RSTR returned by the Issuer and Respond to the Challenge

Throws:
WSSecureConversationException

createRSTRForClientInitiatedIssuedTokenContext

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

Throws:
WSSecureConversationException

containsChallenge

public boolean containsChallenge(RequestSecurityTokenResponse rstr)
Contains Challenge

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