Class RequestedSecurityTokenImpl

java.lang.Object
com.sun.xml.ws.security.trust.impl.bindings.RequestedSecurityTokenType
com.sun.xml.ws.security.trust.impl.elements.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 Details

    • RequestedSecurityTokenImpl

      public RequestedSecurityTokenImpl()
      Empty default constructor.
    • RequestedSecurityTokenImpl

      public RequestedSecurityTokenImpl(@NotNull RequestedSecurityTokenType rdstType)
    • RequestedSecurityTokenImpl

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

    • fromElement

      public static RequestedSecurityTokenType fromElement(@NotNull 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 final void setToken(com.sun.xml.ws.security.Token token)
      Specified by:
      setToken in interface com.sun.xml.ws.security.trust.elements.RequestedSecurityToken