org.apache.ws.sandbox.security.trust.message.token
Class RenewRequestSecurityToken
java.lang.Object
org.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
org.apache.ws.sandbox.security.trust.message.token.RenewRequestSecurityToken
- public class RenewRequestSecurityToken
- extends RequestSecurityToken
This is the class to be used to enerate a RequestSecurityToken for the
RST renewal binding
Additinal child elemets required for a renewal request is provided here
NOTE: This should no tbe used in requesting a renewable security token
In such a situation IssueRequestSecurityToken should be used setting the
renewal properties
- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
- See Also:
TrustConstants.RENEW_SECURITY_TOKEN
Method Summary |
protected 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 |
setAllowPostdating()
|
void |
setRenewTarget(org.w3c.dom.Element tokenBeingRenewed)
Set a custom token as the token being renewed |
void |
setRenewTarget(SecurityTokenReference securityTokenReference)
sets a wsse:SecurityTokenReference in the
wst:RenewTarget element |
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken |
addAttribute, addToken, deserializeChildElement, getAttributeValue, getElement, getRequesType, getToken, getTokensByTagNameNS, getTokenType, setContextAttr, setRequestType, setTokenType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RenewRequestSecurityToken
public RenewRequestSecurityToken(org.w3c.dom.Document doc)
- Parameters:
doc
-
RenewRequestSecurityToken
public RenewRequestSecurityToken(org.w3c.dom.Element elem)
throws WSTrustException
- Parameters:
elem
-
- Throws:
WSSecurityException
WSTrustException
setRenewTarget
public void setRenewTarget(org.w3c.dom.Element tokenBeingRenewed)
- Set a custom token as the token being renewed
setRenewTarget
public void setRenewTarget(SecurityTokenReference securityTokenReference)
- sets a
wsse:SecurityTokenReference
in the
wst:RenewTarget
element
- Parameters:
securityTokenReference
- - See Also:
SecurityTokenReference
setAllowPostdating
public void setAllowPostdating()
handleSpecificChildren
protected void handleSpecificChildren(org.w3c.dom.Element elem)
throws WSTrustException
- Description copied from class:
RequestSecurityToken
- 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
- Specified by:
handleSpecificChildren
in class RequestSecurityToken
- Parameters:
elem
-
- Throws:
WSTrustException
Copyright © 2004-2008 Apache Web Services. All Rights Reserved.