Package org.apache.rahas.impl
Class SAMLTokenIssuer
java.lang.Object
org.apache.rahas.impl.SAMLTokenIssuer
- All Implemented Interfaces:
TokenIssuer
Issuer to issue SAMl tokens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]generateEphemeralKey(int keySize) Create an ephemeral keygetResponseAction(RahasData data) Returns thewsa:Actionof the response.org.apache.axiom.soap.SOAPEnvelopeCreate the responsesoap:Envelopefor the given issue request.voidsetConfigurationElement(org.apache.axiom.om.OMElement configElement) Set the configuration element of this TokenIssuer.voidsetConfigurationFile(String configFile) Set the configuration file of this TokenIssuer.voidsetConfigurationParamName(String configParamName) Set the name of the configuration parameter.
-
Constructor Details
-
SAMLTokenIssuer
public SAMLTokenIssuer()
-
-
Method Details
-
issue
Description copied from interface:TokenIssuerCreate the responsesoap:Envelopefor the given issue request.- Specified by:
issuein interfaceTokenIssuer- Parameters:
data- A populatedRahasDatainstance- Returns:
- The response
soap:Envelopefor the given issue request. - Throws:
TrustException- If an error occurred while creating the token.
-
getResponseAction
Returns thewsa:Actionof the response.- Specified by:
getResponseActionin interfaceTokenIssuer- Parameters:
data- A populatedRahasDatainstance- Returns:
- Returns the
wsa:Actionof the response - Throws:
TrustException- If an error occurred while during operation.
-
generateEphemeralKey
Create an ephemeral key- Returns:
- The generated key as a byte array
- Throws:
TrustException
-
setConfigurationFile
Set the configuration file of this TokenIssuer.This is the text value of the <configuration-file> element of the token-dispatcher-configuration
- Specified by:
setConfigurationFilein interfaceTokenIssuer- Parameters:
configFile- Sets the token issuer configuration file.
-
setConfigurationElement
public void setConfigurationElement(org.apache.axiom.om.OMElement configElement) Set the configuration element of this TokenIssuer.This is the <configuration> element of the token-dispatcher-configuration
- Specified by:
setConfigurationElementin interfaceTokenIssuer- Parameters:
configElement-OMElementrepresenting the configuration
-
setConfigurationParamName
Set the name of the configuration parameter.If this is used then there must be a
org.apache.axis2.description.Parameterobject available in the via the messageContext when theTokenIssueris called.- Specified by:
setConfigurationParamNamein interfaceTokenIssuer- Parameters:
configParamName- The configuration parameter to be set.- See Also:
-
Parameter
-