|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
org.apache.ws.sandbox.security.trust.message.token.CompositeElement
org.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken
Field Summary | |
protected RequestType |
requestTypeElement
|
static javax.xml.namespace.QName |
TOKEN
|
protected TokenType |
tokenTypeElement
|
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken |
document, element |
Constructor Summary | |
RequestSecurityToken(org.w3c.dom.Document doc,
java.lang.String requestType)
Creates a new wst:RequestSecurityToken with the
given request type |
|
RequestSecurityToken(org.w3c.dom.Element elem)
Instanciate a new RequestSecurityToken with a wst:RequestSecurityToken
token's element |
Method Summary | |
void |
addAttribute(java.lang.String attribute,
java.lang.String value)
This is provided as an extensibility mechnism to ass any attrbute to the wst:RequestSecyrityToken element |
void |
addToken(org.w3c.dom.Element childToken)
This is provided as an extensibility mechanism to add any child element to the wst:RequestSecyrityToken element |
protected void |
deserializeChildElement(org.w3c.dom.Element elem)
This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token |
java.lang.String |
getAttributeValue(java.lang.String attribute)
This is to be used to retrieve the value of the custom attrbutes added to the wst:RequestSecyrityToken |
org.w3c.dom.Element |
getElement()
Returns the root element of this token TODO: This should be removed |
java.lang.String |
getRequesType()
Returns the value of the RequestType element |
protected javax.xml.namespace.QName |
getToken()
Returns the QName of this type |
org.w3c.dom.NodeList |
getTokensByTagNameNS(java.lang.String namespace,
java.lang.String tagName)
This is provided to be used to extract custom elements from the wst:RequestSecyrityToken |
java.lang.String |
getTokenType()
Returns the value of the TokenType element |
protected abstract void |
handleSpecificChildren(org.w3c.dom.Element elem)
This is used to handle the specific child elements for the four types of requests Issue @see TrustConstants#ISSUE_SECURITY_TOKEN Renew @see TrustConstants#RENEW_SECURITY_TOKEN Cancel @see TrustConstants#CANCEL_SECURITY_TOKEN Validate @see TrustConstants#VALIDATE_SECURITY_TOKEN |
void |
setContextAttr(java.lang.String contextAttrValue)
|
void |
setRequestType(java.lang.String requestType)
Sets the wst:RequestType value of this wst:RequestSecurityToken |
void |
setTokenType(java.lang.String tokenType)
Sets the wst:TokenType value of this wst:RequestSecurityToken |
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.CompositeElement |
setElementTextValue |
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken |
addChild, parse, removeChild, setElement, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected TokenType tokenTypeElement
protected RequestType requestTypeElement
public static final javax.xml.namespace.QName TOKEN
Constructor Detail |
public RequestSecurityToken(org.w3c.dom.Document doc, java.lang.String requestType)
wst:RequestSecurityToken
with the
given request type
doc
- requestType
- public RequestSecurityToken(org.w3c.dom.Element elem) throws WSTrustException
RequestSecurityToken
with a wst:RequestSecurityToken
token's element
elem
-
WSSecurityException
WSTrustException
Method Detail |
public void setTokenType(java.lang.String tokenType)
wst:TokenType
value of this wst:RequestSecurityToken
tokenType
- The wst:TokenType
uri as a String
public java.lang.String getTokenType()
public void setRequestType(java.lang.String requestType)
wst:RequestType
value of this wst:RequestSecurityToken
requestType
- The wst:RequestType
uri as a String
public java.lang.String getRequesType()
RequestType
element
public void setContextAttr(java.lang.String contextAttrValue)
public void addToken(org.w3c.dom.Element childToken)
wst:RequestSecyrityToken
element
childToken
- public void addAttribute(java.lang.String attribute, java.lang.String value)
wst:RequestSecyrityToken
element
attribute
- value
- public org.w3c.dom.NodeList getTokensByTagNameNS(java.lang.String namespace, java.lang.String tagName)
wst:RequestSecyrityToken
namespace
- tagName
-
public java.lang.String getAttributeValue(java.lang.String attribute)
wst:RequestSecyrityToken
attribute
-
protected javax.xml.namespace.QName getToken()
getToken
in class AbstractToken
AbstractToken.getToken()
public org.w3c.dom.Element getElement()
getElement
in class AbstractToken
protected void deserializeChildElement(org.w3c.dom.Element elem) throws WSTrustException
AbstractToken
Node.ELEMENT_NODE
of this token
deserializeChildElement
in class AbstractToken
elem
- The child element
WSTrustException
protected abstract void handleSpecificChildren(org.w3c.dom.Element elem) throws WSTrustException
elem
-
WSTrustException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |