Class RequestedSecurityTokenImpl

java.lang.Object
com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType
com.sun.xml.ws.security.trust.impl.wssx.elements.RequestedSecurityTokenImpl
All Implemented Interfaces:
RequestedSecurityToken

public class RequestedSecurityTokenImpl extends RequestedSecurityTokenType implements RequestedSecurityToken
Implementation for the RequestedSecurityToken.
Author:
Manveen Kaur
  • Constructor Details

    • RequestedSecurityTokenImpl

      public RequestedSecurityTokenImpl()
      Empty default constructor.
    • RequestedSecurityTokenImpl

      public RequestedSecurityTokenImpl(RequestedSecurityTokenType rdstType)
    • RequestedSecurityTokenImpl

      public RequestedSecurityTokenImpl(Token token)
  • Method Details

    • fromElement

      public static RequestedSecurityTokenType fromElement(Element element) throws WSTrustException
      Constructs a RequestedSecurityToken element from an existing XML block.
      Parameters:
      element - org.w3c.dom.Element representing DOM tree for RequestedSecurityToken object.
      Throws:
      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 Token getToken()
      Description copied from interface: RequestedSecurityToken
      Returns the Security Token contained in the RequestedSecurityToken element.
      Specified by:
      getToken in interface RequestedSecurityToken
      Returns:
      Token
    • setToken

      public void setToken(Token token)
      Description copied from interface: RequestedSecurityToken
      Sets the value of the Security Token in the RequestedSecurityToken element.
      Specified by:
      setToken in interface RequestedSecurityToken
      Parameters:
      token - Token