Class RequestedSecurityTokenImpl

  • All Implemented Interfaces:
    com.sun.xml.ws.security.trust.elements.RequestedSecurityToken

    public class RequestedSecurityTokenImpl
    extends RequestedSecurityTokenType
    implements com.sun.xml.ws.security.trust.elements.RequestedSecurityToken
    Implementation for the RequestedSecurityToken.
    Author:
    Manveen Kaur
    • Constructor Detail

      • RequestedSecurityTokenImpl

        public RequestedSecurityTokenImpl()
        Empty default constructor.
      • RequestedSecurityTokenImpl

        public RequestedSecurityTokenImpl​(com.sun.xml.ws.security.Token token)
    • Method Detail

      • fromElement

        public static RequestedSecurityTokenType fromElement​(Element element)
                                                      throws com.sun.xml.ws.api.security.trust.WSTrustException
        Constructs a RequestedSecurityToken element from an existing XML block.
        Parameters:
        element - org.w3c.dom.Element representing DOM tree for RequestedSecurityToken object.
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.
      • getToken

        public com.sun.xml.ws.security.Token getToken()
        Specified by:
        getToken in interface com.sun.xml.ws.security.trust.elements.RequestedSecurityToken
      • setToken

        public void setToken​(com.sun.xml.ws.security.Token token)
        Specified by:
        setToken in interface com.sun.xml.ws.security.trust.elements.RequestedSecurityToken