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
-
Field Summary
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.RequestedSecurityTokenType
any -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructor.RequestedSecurityTokenImpl(com.sun.xml.ws.security.Token token) -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedSecurityTokenTypefromElement(Element element) Constructs aRequestedSecurityTokenelement from an existing XML block.com.sun.xml.ws.security.TokengetToken()final voidsetToken(com.sun.xml.ws.security.Token token) Methods inherited from class com.sun.xml.ws.security.trust.impl.bindings.RequestedSecurityTokenType
getAny, setAnyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.ws.security.trust.elements.RequestedSecurityToken
getAny, setAny
-
Constructor Details
-
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl()Empty default constructor. -
RequestedSecurityTokenImpl
-
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 aRequestedSecurityTokenelement from an existing XML block.- Parameters:
element-org.w3c.dom.Elementrepresenting DOM tree forRequestedSecurityTokenobject.- Throws:
com.sun.xml.ws.api.security.trust.WSTrustException- if it could not process theorg.w3c.dom.Elementproperly, 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:
getTokenin interfacecom.sun.xml.ws.security.trust.elements.RequestedSecurityToken
-
setToken
public final void setToken(com.sun.xml.ws.security.Token token) - Specified by:
setTokenin interfacecom.sun.xml.ws.security.trust.elements.RequestedSecurityToken
-