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
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType
any
-
-
Constructor Summary
Constructors Constructor Description RequestedSecurityTokenImpl()Empty default constructor.RequestedSecurityTokenImpl(Token token)RequestedSecurityTokenImpl(RequestedSecurityTokenType rdstType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestedSecurityTokenTypefromElement(Element element)Constructs aRequestedSecurityTokenelement from an existing XML block.TokengetToken()Returns the Security Token contained in the RequestedSecurityToken element.voidsetToken(Token token)Sets the value of the Security Token in the RequestedSecurityToken element.-
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType
getAny, setAny
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.ws.security.trust.elements.RequestedSecurityToken
getAny, setAny
-
-
-
-
Constructor Detail
-
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl()
Empty default constructor.
-
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl(RequestedSecurityTokenType rdstType)
-
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl(Token token)
-
-
Method Detail
-
fromElement
public static RequestedSecurityTokenType fromElement(Element element) throws WSTrustException
Constructs aRequestedSecurityTokenelement from an existing XML block.- Parameters:
element-org.w3c.dom.Elementrepresenting DOM tree forRequestedSecurityTokenobject.- Throws:
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 Token getToken()
Description copied from interface:RequestedSecurityTokenReturns the Security Token contained in the RequestedSecurityToken element.- Specified by:
getTokenin interfaceRequestedSecurityToken- Returns:
Token
-
setToken
public void setToken(Token token)
Description copied from interface:RequestedSecurityTokenSets the value of the Security Token in the RequestedSecurityToken element.- Specified by:
setTokenin interfaceRequestedSecurityToken- Parameters:
token-Token
-
-