org.apache.axis2.security.trust.impl
Class SCTIssuer

java.lang.Object
  extended byorg.apache.axis2.security.trust.impl.SCTIssuer
All Implemented Interfaces:
TokenIssuer

public class SCTIssuer
extends Object
implements TokenIssuer


Field Summary
static String BINARY_SECRET
           
static String COMPUTED_KEY
           
static String ENCRYPTED_KEY
           
 
Constructor Summary
SCTIssuer()
           
 
Method Summary
 String getResponseAction(org.apache.axiom.om.OMElement request, MessageContext inMsgCtx)
          Returns the wsa:Action of the response
 org.apache.axiom.soap.SOAPEnvelope issue(org.apache.axiom.om.OMElement request, MessageContext inMsgCtx)
          Issue a SecuritycontextToken based on the wsse:Signature or wsse:UsernameToken This will support returning the SecurityContextToken with the following types of wst:RequestedProof tokens: xenc:EncryptedKey wst:ComputedKey wst:BinarySecret (for secure transport)
 void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
          Set the configuration element of this TokenIssuer.
 void setConfigurationFile(String configFile)
          Set the configuration file of this TokenIssuer.
 void setConfigurationParamName(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
 

Field Detail

ENCRYPTED_KEY

public static final String ENCRYPTED_KEY
See Also:
Constant Field Values

COMPUTED_KEY

public static final String COMPUTED_KEY
See Also:
Constant Field Values

BINARY_SECRET

public static final String BINARY_SECRET
See Also:
Constant Field Values
Constructor Detail

SCTIssuer

public SCTIssuer()
Method Detail

issue

public org.apache.axiom.soap.SOAPEnvelope issue(org.apache.axiom.om.OMElement request,
                                                MessageContext inMsgCtx)
                                         throws TrustException
Issue a SecuritycontextToken based on the wsse:Signature or wsse:UsernameToken This will support returning the SecurityContextToken with the following types of wst:RequestedProof tokens:

Specified by:
issue in interface TokenIssuer
Parameters:
request - The contents of the soap:Body as an OMElement
inMsgCtx - The incoming messagge context
Returns:
The response soap:Envelope for the given issue request.
Throws:
TrustException

getResponseAction

public String getResponseAction(org.apache.axiom.om.OMElement request,
                                MessageContext inMsgCtx)
                         throws TrustException
Description copied from interface: TokenIssuer
Returns the wsa:Action of the response

Specified by:
getResponseAction in interface TokenIssuer
Parameters:
request - The contents of the soap:Body as an OMElement
inMsgCtx - The incoming messagge context
Returns:
Returns the wsa:Action of the response
Throws:
TrustException

setConfigurationFile

public void setConfigurationFile(String configFile)
Description copied from interface: TokenIssuer
Set the configuration file of this TokenIssuer. This is the text value of the <configuration-file> element of the token-dispatcher-configuration

Specified by:
setConfigurationFile in interface TokenIssuer
Parameters:
configFile -
See Also:
TokenIssuer.setConfigurationFile(java.lang.String)

setConfigurationElement

public void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
Description copied from interface: TokenIssuer
Set the configuration element of this TokenIssuer. This is the <configuration> element of the token-dispatcher-configuration

Specified by:
setConfigurationElement in interface TokenIssuer
Parameters:
configElement - OMElement representing the configuation
See Also:
org.apache.axis2.security.trust.TokenIssuer#setConfigurationElement(java.lang.String)

setConfigurationParamName

public void setConfigurationParamName(String configParamName)
Description copied from interface: TokenIssuer
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 TokenIssuer
Parameters:
configParamName -
See Also:
Parameter