com.sun.xml.ws.security.trust.impl.wssx.elements
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 com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType
- implements RequestedSecurityToken
Implementation for the RequestedSecurityToken.
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType |
any |
Method Summary |
static com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType |
fromElement(org.w3c.dom.Element element)
Constructs a RequestedSecurityToken element from
an existing XML block. |
com.sun.xml.ws.security.Token |
getToken()
Returns the Security Token contained in the RequestedSecurityToken element. |
void |
setToken(com.sun.xml.ws.security.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 |
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl()
- Empty default constructor.
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl(com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType rdstType)
RequestedSecurityTokenImpl
public RequestedSecurityTokenImpl(com.sun.xml.ws.security.Token token)
fromElement
public static com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedSecurityTokenType fromElement(org.w3c.dom.Element element)
throws WSTrustException
- Constructs a
RequestedSecurityToken
element from
an existing XML block.
- Parameters:
requestedSecurityTokenElement
- A
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 com.sun.xml.ws.security.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(com.sun.xml.ws.security.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