org.apache.ws.sandbox.security.trust2
Class SecurityTokenMessage
java.lang.Object
org.apache.ws.sandbox.security.trust2.SecurityTokenMessage
- Direct Known Subclasses:
- RequestSecurityToken, RequestSecurityTokenResponse
- public abstract class SecurityTokenMessage
- extends java.lang.Object
- Author:
- ddelvecc
A base class for WS-Trust messages such as and .
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
context
protected java.net.URI context
tokenType
protected java.net.URI tokenType
keyType
protected java.net.URI keyType
keySize
protected int keySize
signatureAlgorithm
protected java.net.URI signatureAlgorithm
encryption
protected SecurityTokenOrReference encryption
proofEncryption
protected SecurityTokenOrReference proofEncryption
lifetime
protected Lifetime lifetime
customElements
protected java.util.ArrayList customElements
element
protected org.w3c.dom.Element element
doc
protected org.w3c.dom.Document doc
SecurityTokenMessage
public SecurityTokenMessage(org.w3c.dom.Element element)
throws ElementParsingException
- Constructs a SecurityTokenMessage object from an existing element.
- Parameters:
element
-
SecurityTokenMessage
public SecurityTokenMessage(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
throws ElementParsingException
SecurityTokenMessage
public SecurityTokenMessage(org.w3c.dom.Document doc)
setDocument
public void setDocument(org.w3c.dom.Document doc)
getDocument
public org.w3c.dom.Document getDocument()
setContext
public void setContext(java.net.URI context)
getContext
public java.net.URI getContext()
setTokenType
public void setTokenType(java.net.URI tokenType)
getTokenType
public java.net.URI getTokenType()
addCustomElement
public void addCustomElement(org.w3c.dom.Element element)
addCustomElement
public org.w3c.dom.Element addCustomElement(java.lang.String tagName)
addCustomElementNS
public org.w3c.dom.Element addCustomElementNS(java.lang.String namespaceUri,
java.lang.String qualifiedName)
getCustomElements
public java.util.List getCustomElements()
getCustomElement
public org.w3c.dom.Element getCustomElement(java.lang.String namespaceUri,
java.lang.String localName)
setLifetime
public void setLifetime(Lifetime lifetime)
getLifetime
public Lifetime getLifetime()
getElement
public abstract org.w3c.dom.Element getElement()
throws TrustException
- Throws:
TrustException
getElement
protected org.w3c.dom.Element getElement(java.lang.String tagName)
throws TrustException
- Throws:
TrustException
createTokenOrReferenceElement
protected org.w3c.dom.Element createTokenOrReferenceElement(java.lang.String enclosingTagName,
SecurityTokenOrReference token)
throws TrustException
- Throws:
TrustException
setTextContent
protected void setTextContent(org.w3c.dom.Element element,
java.lang.String string)
- Adds a text child node to the given element.
- Parameters:
element
- The element to add text tostring
- The text string to add
getTextContent
protected java.lang.String getTextContent(org.w3c.dom.Node currentNode)
getFirstNonBlankChildAsElement
protected org.w3c.dom.Element getFirstNonBlankChildAsElement(org.w3c.dom.Node currentNode)
toString
public java.lang.String toString()
Copyright © 2004-2008 Apache Web Services. All Rights Reserved.