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
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
generateEphemeralKey
(int keySize) Create an ephemeral keygetResponseAction
(RahasData data) Returns thewsa:Action
of the response.org.apache.axiom.soap.SOAPEnvelope
Create the responsesoap:Envelope
for the given issue request.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.
-
Constructor Details
-
SAMLTokenIssuer
public SAMLTokenIssuer()
-
-
Method Details
-
issue
Description copied from interface:TokenIssuer
Create the responsesoap:Envelope
for the given issue request.- Specified by:
issue
in interfaceTokenIssuer
- Parameters:
data
- A populatedRahasData
instance- Returns:
- The response
soap:Envelope
for the given issue request. - Throws:
TrustException
- If an error occurred while creating the token.
-
getResponseAction
Returns thewsa:Action
of the response.- Specified by:
getResponseAction
in interfaceTokenIssuer
- Parameters:
data
- A populatedRahasData
instance- Returns:
- Returns the
wsa:Action
of 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:
setConfigurationFile
in 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:
setConfigurationElement
in interfaceTokenIssuer
- Parameters:
configElement
-OMElement
representing the configuration
-
setConfigurationParamName
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 theTokenIssuer
is called.- Specified by:
setConfigurationParamName
in interfaceTokenIssuer
- Parameters:
configParamName
- The configuration parameter to be set.- See Also:
-
Parameter
-