public class STSClient extends Object
Constructor and Description |
---|
STSClient(org.apache.axis2.context.ConfigurationContext configCtx) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(org.apache.axis2.description.Parameter param) |
boolean |
cancelToken(String issuerAddress,
String tokenId,
String action)
Cancel a particular security token
|
protected org.apache.axiom.om.OMElement |
createIssueRequest(String appliesTo)
This creates a request security token (RST) message.
|
protected Token |
processIssueResponse(int version,
org.apache.axiom.om.OMElement result,
String issuerAddress)
Processes the response from Token issuer.
|
boolean |
renewToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy) |
boolean |
renewToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
TokenStorage store)
Renews the token referenced by the token id, updates the token store
|
Token |
requestSecurityToken(org.apache.neethi.Policy servicePolicy,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
String appliesTo) |
void |
setAction(String action) |
void |
setAddressingNs(String addressingNs) |
void |
setAlgorithmSuite(AlgorithmSuite algorithmSuite)
This can be used in the case where the AlgorithmSuite is not specified in
the given policy.
|
void |
setCryptoInfo(org.apache.ws.security.components.crypto.Crypto crypto,
CallbackHandler cbHandler)
Sets the crypto information required to process the RSTR.
|
void |
setCryptoInfo(org.apache.ws.security.components.crypto.Crypto crypto,
String privKeyPasswd)
Sets the crypto information required to process the RSTR.
|
void |
setOptions(org.apache.axis2.client.Options options) |
void |
setRstTemplate(org.apache.axiom.om.OMElement rstTemplate) |
void |
setSoapVersion(String soapVersion) |
void |
setTrust10(Trust10 trust10)
Set this to set the entropy configurations.
|
void |
setTrust13(Trust13 trust13)
Set this to set the entropy configurations.
|
void |
setTtl(int ttl) |
void |
setVersion(int version) |
boolean |
validateToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy) |
public STSClient(org.apache.axis2.context.ConfigurationContext configCtx) throws TrustException
TrustException
public Token requestSecurityToken(org.apache.neethi.Policy servicePolicy, String issuerAddress, org.apache.neethi.Policy issuerPolicy, String appliesTo) throws TrustException
TrustException
public boolean cancelToken(String issuerAddress, String tokenId, String action) throws TrustException
issuerAddress
- tokenId
- TrustException
public boolean validateToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustException
public boolean renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustException
public boolean renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy, TokenStorage store) throws TrustException
tokenId
- issuerAddress
- issuerPolicy
- store
- TrustException
protected Token processIssueResponse(int version, org.apache.axiom.om.OMElement result, String issuerAddress) throws TrustException
version
- The supported version.result
- Resulting token response from token issuer.issuerAddress
- The respective token applying entity (as a url)TrustException
- If an error occurred while extracting token from response.protected org.apache.axiom.om.OMElement createIssueRequest(String appliesTo) throws TrustException
appliesTo
- The address which token is applicable to.TrustException
- If an error occurred while creating the RST.public void setTrust10(Trust10 trust10)
trust10
- The trust10 to set.public void setTrust13(Trust13 trust13)
trust13
- The trust13 to set.public void setAlgorithmSuite(AlgorithmSuite algorithmSuite)
algorithmSuite
- The algorithmSuite to set.public void setAddressingNs(String addressingNs)
addressingNs
- The addressingNs to set.public void setTtl(int ttl)
ttl
- The ttl to set.public void setCryptoInfo(org.apache.ws.security.components.crypto.Crypto crypto, CallbackHandler cbHandler)
crypto
- Crypto informationcbHandler
- Callback handler to provide the private key password to
decryptpublic void setCryptoInfo(org.apache.ws.security.components.crypto.Crypto crypto, String privKeyPasswd)
crypto
- The crypto informationprivKeyPasswd
- Private key password to decryptpublic void setAction(String action)
action
- The action to set.public void setOptions(org.apache.axis2.client.Options options)
options
- The options to set.public void setRstTemplate(org.apache.axiom.om.OMElement rstTemplate)
rstTemplate
- The rstTemplate to set.public void setVersion(int version)
version
- The version to set.public void setSoapVersion(String soapVersion)
public void addParameter(org.apache.axis2.description.Parameter param)
Copyright © Apache Software Foundation. All Rights Reserved.