|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.rahas.client.STSClient
public class STSClient
Constructor Summary | |
---|---|
STSClient(org.apache.axis2.context.ConfigurationContext configCtx)
|
Method Summary | |
---|---|
boolean |
cancelToken(java.lang.String issuerAddress,
java.lang.String tokenId,
java.lang.String action)
Cancel a particular security token |
boolean |
renewToken(java.lang.String tokenId,
java.lang.String issuerAddress,
org.apache.neethi.Policy issuerPolicy)
|
Token |
requestSecurityToken(org.apache.neethi.Policy servicePolicy,
java.lang.String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
java.lang.String appliesTo)
|
void |
setAction(java.lang.String action)
|
void |
setAddressingNs(java.lang.String addressingNs)
|
void |
setAlgorithmSuite(org.apache.ws.secpolicy.model.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,
javax.security.auth.callback.CallbackHandler cbHandler)
Sets the crypto information required to process the RSTR. |
void |
setCryptoInfo(org.apache.ws.security.components.crypto.Crypto crypto,
java.lang.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(java.lang.String soapVersion)
|
void |
setTrust10(org.apache.ws.secpolicy.model.Trust10 trust10)
Set this to set the entropy configurations. |
void |
setTtl(int ttl)
|
void |
setVersion(int version)
|
boolean |
validateToken(java.lang.String tokenId,
java.lang.String issuerAddress,
org.apache.neethi.Policy issuerPolicy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STSClient(org.apache.axis2.context.ConfigurationContext configCtx) throws TrustException
TrustException
Method Detail |
---|
public Token requestSecurityToken(org.apache.neethi.Policy servicePolicy, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy, java.lang.String appliesTo) throws TrustException
TrustException
public boolean cancelToken(java.lang.String issuerAddress, java.lang.String tokenId, java.lang.String action) throws TrustException
issuerAddress
- tokenId
-
TrustException
public boolean validateToken(java.lang.String tokenId, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustException
public boolean renewToken(java.lang.String tokenId, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy) throws TrustException
TrustException
public void setTrust10(org.apache.ws.secpolicy.model.Trust10 trust10)
trust10
- The trust10 to set.public void setAlgorithmSuite(org.apache.ws.secpolicy.model.AlgorithmSuite algorithmSuite)
algorithmSuite
- The algorithmSuite to set.public void setAddressingNs(java.lang.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, javax.security.auth.callback.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, java.lang.String privKeyPasswd)
crypto
- The crypto informationprivKeyPasswd
- Private key password to decryptpublic void setAction(java.lang.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(java.lang.String soapVersion)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |