Interface WSTrustClientContract

  • All Known Implementing Classes:
    WSTrustClientContractImpl

    public interface WSTrustClientContract
    The Contract to be used by the Trust-Plugin on the Client Side. TODO: Need to refine this....
    Author:
    root
    • Method Summary

      All Methods Instance Methods Abstract 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.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.
      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.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.BaseSTSResponse handleRSTRForNegotiatedExchange​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest rst, com.sun.xml.ws.security.trust.elements.BaseSTSResponse rstr, com.sun.xml.ws.security.IssuedTokenContext context)
      Handle an RSTR returned by the Issuer and Respond to the Challenge
    • Method Detail

      • handleRSTR

        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.
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • handleRSTRForNegotiatedExchange

        com.sun.xml.ws.security.trust.elements.BaseSTSResponse handleRSTRForNegotiatedExchange​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest rst,
                                                                                               com.sun.xml.ws.security.trust.elements.BaseSTSResponse rstr,
                                                                                               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
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createRSTRForClientInitiatedIssuedTokenContext

        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.
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • containsChallenge

        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

        URI getComputedKeyAlgorithmFromProofToken​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
        Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise