org.apache.rahas.impl
Class SAML2TokenIssuer

java.lang.Object
  extended by org.apache.rahas.impl.SAML2TokenIssuer
All Implemented Interfaces:
TokenIssuer

public class SAML2TokenIssuer
extends java.lang.Object
implements TokenIssuer


Field Summary
protected  java.util.List<org.opensaml.xml.signature.Signature> signatureList
           
 
Constructor Summary
SAML2TokenIssuer()
           
 
Method Summary
protected static org.opensaml.xml.XMLObject buildXMLObject(javax.xml.namespace.QName objectQName)
          This method is used to build the assertion elements
 java.lang.String getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 org.apache.axiom.soap.SOAPEnvelope issue(RahasData data)
          Create the response soap:Envelope for the given issue request.
 void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
          Set the configuration element of this TokenIssuer.
 void setConfigurationFile(java.lang.String configFile)
          Set the configuration file of this TokenIssuer.
 void setConfigurationParamName(java.lang.String configParamName)
          Set the name of the configuration parameter.
 org.opensaml.saml2.core.Assertion setSignature(org.opensaml.saml2.core.Assertion assertion, SignKeyHolder cred)
          This method is used to sign the assertion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signatureList

protected java.util.List<org.opensaml.xml.signature.Signature> signatureList
Constructor Detail

SAML2TokenIssuer

public SAML2TokenIssuer()
Method Detail

issue

public org.apache.axiom.soap.SOAPEnvelope issue(RahasData data)
                                         throws TrustException
Description copied from interface: TokenIssuer
Create the response soap:Envelope for the given issue request.

Specified by:
issue in interface TokenIssuer
Parameters:
data - A populated RahasData instance
Returns:
The response soap:Envelope for the given issue request.
Throws:
TrustException

setSignature

public org.opensaml.saml2.core.Assertion setSignature(org.opensaml.saml2.core.Assertion assertion,
                                                      SignKeyHolder cred)
                                               throws java.lang.Exception
This method is used to sign the assertion

Parameters:
assertion -
cred -
Returns:
Assertion
Throws:
java.lang.Exception

buildXMLObject

protected static org.opensaml.xml.XMLObject buildXMLObject(javax.xml.namespace.QName objectQName)
                                                    throws java.lang.Exception
This method is used to build the assertion elements

Parameters:
objectQName -
Returns:
Throws:
java.lang.Exception

getResponseAction

public java.lang.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

setConfigurationFile

public void setConfigurationFile(java.lang.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

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

setConfigurationParamName

public void setConfigurationParamName(java.lang.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
See Also:
Parameter