Class SCTIssuer

java.lang.Object
org.apache.rahas.impl.SCTIssuer
All Implemented Interfaces:
TokenIssuer

public class SCTIssuer extends Object implements TokenIssuer
  • Field Details

  • Constructor Details

    • SCTIssuer

      public SCTIssuer()
  • Method Details

    • issue

      public org.apache.axiom.soap.SOAPEnvelope issue(RahasData data) 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:

      • xenc:EncryptedKey
      • wst:ComputedKey
      • wst:BinarySecret (for secure transport)
      Specified by:
      issue in interface TokenIssuer
      Parameters:
      data - A populated RahasData instance
      Returns:
      The response soap:Envelope for the given issue request.
      Throws:
      TrustException - If an error occurred while creating the token.
    • getResponseAction

      public String getResponseAction(RahasData data) throws TrustException
      Description copied from interface: TokenIssuer
      Returns the wsa:Action of the response.
      Specified by:
      getResponseAction in interface TokenIssuer
      Parameters:
      data - A populated RahasData instance
      Returns:
      Returns the wsa:Action of the response
      Throws:
      TrustException - If an error occurred while during operation.
    • 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 - Sets the token issuer configuration file.
      See Also:
    • 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 configuration
      See Also:
    • 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 - The configuration parameter to be set.
      See Also:
      • Parameter