Class WSSCClientContract


  • public class WSSCClientContract
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsChallenge​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
      Contains Challenge
      com.sun.xml.ws.security.trust.elements.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.
      URI getComputedKeyAlgorithmFromProofToken​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
      Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise
      void handleRSTR​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst, com.sun.xml.ws.security.trust.elements.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​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst, com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrc, com.sun.xml.ws.security.IssuedTokenContext context)
      Handle an RSTRC returned by the Issuer and update Token information into the IssuedTokenContext.
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse handleRSTRForNegotiatedExchange​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst, com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr, com.sun.xml.ws.security.IssuedTokenContext context)
      Handle an RSTR returned by the Issuer and Respond to the Challenge
    • Constructor Detail

      • WSSCClientContract

        public WSSCClientContract()
    • Method Detail

      • handleRSTR

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

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

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse handleRSTRForNegotiatedExchange​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst,
                                                                                                                   com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr,
                                                                                                                   com.sun.xml.ws.security.IssuedTokenContext context)
                                                                                                            throws com.sun.xml.ws.security.secconv.WSSecureConversationException
        Handle an RSTR returned by the Issuer and Respond to the Challenge
        Throws:
        com.sun.xml.ws.security.secconv.WSSecureConversationException
      • createRSTRForClientInitiatedIssuedTokenContext

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

        public boolean containsChallenge​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
        Contains Challenge
        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