org.apache.rahas.impl
Class TokenCancelerImpl

java.lang.Object
  extended by org.apache.rahas.impl.TokenCancelerImpl
All Implemented Interfaces:
TokenCanceler

public class TokenCancelerImpl
extends java.lang.Object
implements TokenCanceler


Constructor Summary
TokenCancelerImpl()
           
 
Method Summary
 org.apache.axiom.soap.SOAPEnvelope cancel(RahasData data)
          Cancel the token specified in the request.
 java.lang.String getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
          Set the configuration element of this TokenCanceller.
 void setConfigurationFile(java.lang.String configFile)
          Set the configuration file of this TokenCanceller.
 void setConfigurationParamName(java.lang.String configParamName)
          Set the name of the configuration parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenCancelerImpl

public TokenCancelerImpl()
Method Detail

cancel

public org.apache.axiom.soap.SOAPEnvelope cancel(RahasData data)
                                          throws TrustException
Cancel the token specified in the request.

Specified by:
cancel in interface TokenCanceler
Parameters:
data - A populated RahasData instance
Returns:
Response SOAPEnveloper
Throws:
TrustException

setConfigurationFile

public void setConfigurationFile(java.lang.String configFile)
Set the configuration file of this TokenCanceller.

This is the text value of the <configuration-file> element of the token-dispatcher-configuration

Specified by:
setConfigurationFile in interface TokenCanceler
Parameters:
configFile -

setConfigurationElement

public void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
Set the configuration element of this TokenCanceller.

This is the <configuration> element of the token-dispatcher-configuration

Specified by:
setConfigurationElement in interface TokenCanceler
Parameters:
configElement - OMElement representing the configuation

setConfigurationParamName

public void setConfigurationParamName(java.lang.String configParamName)
Set the name of the configuration parameter.

If this is used then there must be a org.apache.axis2.description.Parameter object available in the via the messageContext when the TokenIssuer is called.

Specified by:
setConfigurationParamName in interface TokenCanceler
Parameters:
configParamName -
See Also:
Parameter

getResponseAction

public java.lang.String getResponseAction(RahasData data)
                                   throws TrustException
Returns the wsa:Action of the response.

Specified by:
getResponseAction in interface TokenCanceler
Parameters:
data - A populated RahasData instance
Returns:
Returns the wsa:Action of the response
Throws:
TrustException