|
|||||||||||
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
org.apache.ws.sandbox.security.trust.message.token.IssueRequestSecurityToken
This is the class to be used to enerate a RequestSecurityToken for the RST issuance binding Some additional child elements are provided for the convenience of the developer to carry out an issue request
TrustConstants.ISSUE_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 | |
IssueRequestSecurityToken(org.w3c.dom.Document doc)
|
|
IssueRequestSecurityToken(org.w3c.dom.Element elem)
|
Method Summary | |
AppliesTo |
getAppliesToElement()
Returns the AppliesTo element |
Claims |
getClaimsElement()
Returns the Claims element |
Entropy |
getEntropyElement()
Returns the Entropy element |
KeySize |
getKeySizeElement()
Returns the KeySize element |
Lifetime |
getLifetimeElement()
Returns the Lifetime |
Renewing |
getRenewingElement()
Returns the Renewing element |
protected void |
handleSpecificChildren(org.w3c.dom.Element elem)
Handle the serialization of child elements specific to this type |
void |
setAppliesTo(java.lang.String appliesTo)
Sets the wst:AppliesTo value of the wst:RequestSecurityToken |
void |
setClaims(java.lang.String dialectURI,
org.w3c.dom.Element claimsElement)
Sets the values of the wst:Claims element of the
wst:RequestSecurityToken |
void |
setClaims(java.lang.String dialectURI,
org.w3c.dom.NodeList claims)
Sets a set of claims |
void |
setClaimsDialectAttr(java.lang.String dialectURI)
Sets the dialect attribute value of the wst:Claims element |
void |
setEntropy(java.lang.String binarySecretType,
java.lang.String entropyValue)
Sets the wst:Entropy/wst:BinarySecret value and
wst:Entropy/wst:BinarySecret@Type of the
wst:RequestSecurityToken |
void |
setEntropyNonce(java.lang.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(int duration)
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.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 |
public IssueRequestSecurityToken(org.w3c.dom.Document doc)
doc
- public IssueRequestSecurityToken(org.w3c.dom.Element elem) throws WSTrustException
elem
-
WSSecurityException
WSTrustException
Method Detail |
public void setAppliesTo(java.lang.String appliesTo)
wst:AppliesTo
value of the wst:RequestSecurityToken
appliesTo
- The wst:AppliesTo/wsa:EndpointReference as a String
public void setEntropy(java.lang.String binarySecretType, java.lang.String entropyValue)
wst:Entropy/wst:BinarySecret
value and
wst:Entropy/wst:BinarySecret@Type
of the
wst:RequestSecurityToken
binarySecretType
- entropyValue
- public void setEntropyNonce(java.lang.String nonceValue)
Nonce
BinarySecret#NONCE_VAL
public void setLifetime(int duration)
wst:Lifetime
element with the given duration to the
wst:RequestSecurityToken
duration
- public void setKeySize(int size)
wst:KeySize
value of the wst:RequestSecurityToken
size
- public void setClaims(java.lang.String dialectURI, org.w3c.dom.Element claimsElement)
wst:Claims
element of the
wst:RequestSecurityToken
dialectURI
- claimsElement
- An Element
representing a claimpublic void setClaims(java.lang.String dialectURI, org.w3c.dom.NodeList claims)
dialectURI
- claims
- public void setClaimsDialectAttr(java.lang.String dialectURI)
wst:Claims
element
dialectURI
- public void setRenewing(boolean allow, boolean ok)
wst:Renewing
element of the
wst:RequestSecurityToken
allow
- ok
- public AppliesTo getAppliesToElement()
AppliesTo
element
public Claims getClaimsElement()
Claims
element
public Entropy getEntropyElement()
Entropy
element
public KeySize getKeySizeElement()
KeySize
element
public Lifetime getLifetimeElement()
Lifetime
public Renewing getRenewingElement()
Renewing
element
protected void handleSpecificChildren(org.w3c.dom.Element elem) throws WSTrustException
handleSpecificChildren
in class RequestSecurityToken
elem
-
WSTrustException
RequestSecurityToken.handleSpecificChildren(org.w3c.dom.Element)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |