org.apache.ws.sandbox.security.trust.message.token
Class RenewRequestSecurityToken

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.CompositeElement
          extended byorg.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken
              extended byorg.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

Field Summary
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.RequestSecurityToken
requestTypeElement, TOKEN, tokenTypeElement
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
RenewRequestSecurityToken(org.w3c.dom.Document doc)
           
RenewRequestSecurityToken(org.w3c.dom.Element elem)
           
 
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 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
 

Constructor Detail

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
Method Detail

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

Specified by:
handleSpecificChildren in class RequestSecurityToken
Parameters:
elem -
Throws:
WSTrustException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.