org.apache.axis2.security.trust.token
Class IssueRequestSecurityToken

java.lang.Object
  extended byorg.apache.axis2.security.trust.token.AbstractToken
      extended byorg.apache.axis2.security.trust.token.CompositeToken
          extended byorg.apache.axis2.security.trust.token.RequestSecurityToken
              extended byorg.apache.axis2.security.trust.token.IssueRequestSecurityToken

public class IssueRequestSecurityToken
extends RequestSecurityToken


Field Summary
 
Fields inherited from class org.apache.axis2.security.trust.token.RequestSecurityToken
requestTypeElement, TOKEN, tokenTypeElement
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
IssueRequestSecurityToken()
           
IssueRequestSecurityToken(OMElement elem)
           
 
Method Summary
 void addClaims(String dialectURI, Iterator claimsElements)
          This should be used to set a ste of claims in the Claims element
 OMElement getAppliesTo()
          Returns the first child of the AppliesTo element.
 Claims getClaims()
          Returns the Claims element.
 Entropy getEntropy()
          Returns the Entropy element
 KeySize getKeySize()
          Retuns the KeySize element
 Lifetime getLifetime()
          Retuns the Lifetime element
 Renewing getRenewing()
          Returns the Renewing element
protected  void handleSpecificChildren(OMElement element)
           
 void setAppliesTo(OMElement value)
          Sets the value of the AppliesTo element.
 void setClaims(String dialectURI, OMElement claimElement)
          Can be used when setting one claim in the Claims element
 void setEntropy(String binarySecretType, String entropyValue)
          Sets the wst:Entropy/wst:BinarySecret value and wst:Entropy/wst:BinarySecret@Type of the wst:RequestSecurityToken
 void setEntropyNonce(String nonceValue)
          Sets the binary secret of the Entropy element when the its of type Nonce
 void setKeySize(int size)
          Sets the wst:KeySize value of the wst:RequestSecurityToken
 void setLifetime(long lifetimeInMillis)
          Adds a wst:Lifetime element with the given duration to the wst:RequestSecurityToken
 void setRenewing(boolean allow, boolean ok)
          Sets the wst:Renewing element of the wst:RequestSecurityToken
 
Methods inherited from class org.apache.axis2.security.trust.token.RequestSecurityToken
addAttribute, addToken, deserializeChildElement, getAttributeValue, getContextAttrValue, getRequestElement, getRequestType, getToken, getToken, getTokenType, setContextAttr, setRequestType, setTokenType
 
Methods inherited from class org.apache.axis2.security.trust.token.CompositeToken
setElementTextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueRequestSecurityToken

public IssueRequestSecurityToken()

IssueRequestSecurityToken

public IssueRequestSecurityToken(OMElement elem)
                          throws TrustException
Parameters:
elem -
Throws:
TrustException
Method Detail

setAppliesTo

public void setAppliesTo(OMElement value)
Sets the value of the AppliesTo element.

Parameters:
value -

getAppliesTo

public OMElement getAppliesTo()
Returns the first child of the AppliesTo element.

Returns:
Returns OMElement.

setClaims

public void setClaims(String dialectURI,
                      OMElement claimElement)
Can be used when setting one claim in the Claims element

Parameters:
dialectURI - Dialect attribute specifies a URI to indicate the syntax of the claims
claimElement -

addClaims

public void addClaims(String dialectURI,
                      Iterator claimsElements)
               throws TrustException
This should be used to set a ste of claims in the Claims element

Parameters:
dialectURI - Dialect attribute specifies a URI to indicate the syntax of the claims
claimsElements - Iterator of OMElements
Throws:
TrustException

getClaims

public Claims getClaims()
Returns the Claims element.

Returns:
Returns Claims.

setEntropy

public void setEntropy(String binarySecretType,
                       String entropyValue)
Sets the wst:Entropy/wst:BinarySecret value and wst:Entropy/wst:BinarySecret@Type of the wst:RequestSecurityToken

Parameters:
binarySecretType -
entropyValue -

setEntropyNonce

public void setEntropyNonce(String nonceValue)
Sets the binary secret of the Entropy element when the its of type Nonce

Parameters:
nonceValue - The nonce value
See Also:
Constants.BINARY_SECRET_TYPE.NONCE_VAL

getEntropy

public Entropy getEntropy()
Returns the Entropy element

Returns:
Returns Entropy.

setLifetime

public void setLifetime(long lifetimeInMillis)
Adds a wst:Lifetime element with the given duration to the wst:RequestSecurityToken

Parameters:
lifetimeInMillis -

getLifetime

public Lifetime getLifetime()
Retuns the Lifetime element

Returns:
Returns Lifetime.

setKeySize

public void setKeySize(int size)
Sets the wst:KeySize value of the wst:RequestSecurityToken

Parameters:
size -

getKeySize

public KeySize getKeySize()
Retuns the KeySize element

Returns:
Returns KeySize.

setRenewing

public void setRenewing(boolean allow,
                        boolean ok)
Sets the wst:Renewing element of the wst:RequestSecurityToken

Parameters:
allow -
ok -

getRenewing

public Renewing getRenewing()
Returns the Renewing element

Returns:
Returns Renewing.

handleSpecificChildren

protected void handleSpecificChildren(OMElement element)
                               throws TrustException
Specified by:
handleSpecificChildren in class RequestSecurityToken
Parameters:
element - Specific child element
Throws:
TrustException