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 tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy)
Cancel a given token
|
boolean |
cancelToken(String issuerAddress,
String tokenId,
String action)
Deprecated.
|
org.apache.axiom.om.OMElement |
createIssueRequest(String requestType,
String appliesTo)
Create the RST request.
|
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
|
boolean |
renewToken(String tokenId,
String tokenType,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
TokenStorage store) |
Token |
requestSecurityToken(org.apache.neethi.Policy servicePolicy,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
String appliesTo) |
Token |
requestSecurityToken(org.apache.neethi.Policy servicePolicy,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
String appliesTo,
org.apache.axis2.client.Options options) |
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
TrustExceptionpublic Token requestSecurityToken(org.apache.neethi.Policy servicePolicy, String issuerAddress, org.apache.neethi.Policy issuerPolicy, String appliesTo, org.apache.axis2.client.Options options) throws TrustException
TrustExceptionpublic Token requestSecurityToken(org.apache.neethi.Policy servicePolicy, String issuerAddress, org.apache.neethi.Policy issuerPolicy, String appliesTo) throws TrustException
TrustException@Deprecated public boolean cancelToken(String issuerAddress, String tokenId, String action) throws TrustException
issuerAddress - tokenId - TrustExceptionpublic boolean cancelToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
tokenId - Token IdentifierissuerAddress - URI of the token issuerissuerPolicy - Security policy applied to token issuerTrustExceptionpublic boolean validateToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustExceptionpublic boolean renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustExceptionpublic boolean renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy, TokenStorage store) throws TrustException
tokenId - issuerAddress - issuerPolicy - store - TrustExceptionpublic boolean renewToken(String tokenId, String tokenType, String issuerAddress, org.apache.neethi.Policy issuerPolicy, TokenStorage store) throws TrustException
TrustExceptionpublic org.apache.axiom.om.OMElement createIssueRequest(String requestType, String appliesTo) throws TrustException
requestType - appliesTo - TrustExceptionpublic 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 © 2005–2019 Apache Software Foundation. All rights reserved.