Class WSTrustFactory


  • public class WSTrustFactory
    extends Object
    The class WSTrustFactory is a factory class that generates ws-trust protocol objects. TODO - We need to make this abstract to make it truely pluggable.
    • Method Detail

      • newInstance

        public static WSTrustFactory newInstance()
                                          throws WSTException
        Returns an instance of WSTrustFactory for the default WS-Trust protocol 1.0
        Returns:
        the instance of WSTrustFactory for the default WS-Trust protocol 1.0
        Throws:
        WSTException - if it is unsupported version.
      • newInstance

        public static WSTrustFactory newInstance​(String protocolVersion)
                                          throws WSTException
        Returns an instance of WSTrustFactory for the given protocol version.
        Parameters:
        protocolVersion - the protocol version.
        Returns:
        an instance of WSTrustFactory for the given protocol version.
        Throws:
        WSTException
      • createRequestSecurityToken

        public RequestSecurityToken createRequestSecurityToken()
        Returns an instance of RequestSecurityToken
        Returns:
        the instance of RequestSecurityToken
      • createRequestSecurityToken

        public RequestSecurityToken createRequestSecurityToken​(Element element)
                                                        throws WSTException
        Returns an instance of RequestSecurityToken for given DOM Element.
        Parameters:
        element - the DOM Element for RequestSecurityToken
        Returns:
        the instance of RequestSecurityToken
        Throws:
        WSTException
      • createRequestSecurityTokenResponse

        public RequestSecurityTokenResponse createRequestSecurityTokenResponse()
        Returns an instance of RequestSecurityTokenResponse
        Returns:
        the instance of RequestSecurityTokenResponse
      • createRequestSecurityTokenResponse

        public RequestSecurityTokenResponse createRequestSecurityTokenResponse​(Element element)
                                                                        throws WSTException
        Returns an instance of RequestSecurityTokenResponse for a given DOM element
        Parameters:
        element - the DOM element representation of RequestSecurityTokenResponse
        Returns:
        an instance of RequestSecurityTokenResponse
        Throws:
        WSTException
      • createRequestSecurityTokenResponseCollection

        public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection()
        Returns an instance of RequestSecurityTokenResponseCollection
        Returns:
        an instance of RequestSecurityTokenResponseCollection
      • createRequestSecurityTokenResponseCollection

        public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection​(Element element)
                                                                                            throws WSTException
        Returns an instance of RequestSecurityTokenResponseCollection for a given DOM Element.
        Parameters:
        element - the DOM Element representation of RequestSecurityTokenResponseCollection
        Returns:
        the RequestSecurityTokenResponseCollection
        Throws:
        WSTException