org.apache.rahas.impl
Class SAMLTokenIssuerConfig

java.lang.Object
  extended by org.apache.rahas.impl.AbstractIssuerConfig
      extended by org.apache.rahas.impl.SAMLTokenIssuerConfig

public class SAMLTokenIssuerConfig
extends AbstractIssuerConfig

Configuration manager for the SAMLTokenIssuer

See Also:
SAMLTokenIssuer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.rahas.impl.AbstractIssuerConfig
AbstractIssuerConfig.KeyComputation
 
Field Summary
protected  SAMLCallbackHandler callbackHander
           
static javax.xml.namespace.QName ISSUER_NAME
           
protected  java.lang.String issuerKeyAlias
           
protected  java.lang.String issuerKeyPassword
           
protected  java.lang.String issuerName
           
static javax.xml.namespace.QName SAML_CALLBACK_CLASS
           
static javax.xml.namespace.QName SAML_ISSUER_CONFIG
          The QName of the configuration element of the SAMLTokenIssuer
protected  java.util.Map trustedServices
           
protected  java.lang.String trustStorePropFile
           
static javax.xml.namespace.QName USE_SAML_ATTRIBUTE_STATEMENT
           
 
Fields inherited from class org.apache.rahas.impl.AbstractIssuerConfig
ADD_REQUESTED_ATTACHED_REF, ADD_REQUESTED_UNATTACHED_REF, addRequestedAttachedRef, addRequestedUnattachedRef, CRYPTO, CRYPTO_PROPERTIES, cryptoElement, cryptoPropertiesElement, cryptoPropertiesFile, keyComputation, keySize, PROOF_KEY_TYPE, proofKeyType, PROPERTY, PROVIDER, ttl
 
Constructor Summary
SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
          Create a SAMLTokenIssuer configuration using the give config element
SAMLTokenIssuerConfig(java.lang.String configFilePath)
          Create a SAMLTokenIssuer configuration with a config file picked from the given location.
SAMLTokenIssuerConfig(java.lang.String issuerName, java.lang.String cryptoProviderClassName, java.util.Properties cryptoProps)
          Create a new configuration with issuer name and crypto information
 
Method Summary
 void addTrustedServiceEndpointAddress(java.lang.String address, java.lang.String alias)
          Add a new trusted service endpoint address with its certificate
 SAMLCallbackHandler getCallbackHander()
           
 org.apache.axis2.description.Parameter getParameter()
          Generate an Axis2 parameter for this configuration
 java.util.Map getTrustedServices()
          Return the list of trusted services as a java.util.Map.
 void setCallbackHander(SAMLCallbackHandler callbackHander)
           
 void setCryptoProperties(java.lang.String providerClassName, java.util.Properties props)
          Set crypto information using WSS4J mechanisms
 void setIssuerKeyAlias(java.lang.String issuerKeyAlias)
           
 void setIssuerKeyPassword(java.lang.String issuerKeyPassword)
           
 void setIssuerName(java.lang.String issuerName)
           
 void setTrustedServices(java.util.Map trustedServices)
           
 void setTrustStorePropFile(java.lang.String trustStorePropFile)
           
 
Methods inherited from class org.apache.rahas.impl.AbstractIssuerConfig
getProofKeyType, setAddRequestedAttachedRef, setAddRequestedUnattachedRef, setKeyComputation, setKeySize, setProofKeyType, setTtl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAML_ISSUER_CONFIG

public static final javax.xml.namespace.QName SAML_ISSUER_CONFIG
The QName of the configuration element of the SAMLTokenIssuer


USE_SAML_ATTRIBUTE_STATEMENT

public static final javax.xml.namespace.QName USE_SAML_ATTRIBUTE_STATEMENT

ISSUER_NAME

public static final javax.xml.namespace.QName ISSUER_NAME

SAML_CALLBACK_CLASS

public static final javax.xml.namespace.QName SAML_CALLBACK_CLASS

issuerKeyAlias

protected java.lang.String issuerKeyAlias

issuerKeyPassword

protected java.lang.String issuerKeyPassword

issuerName

protected java.lang.String issuerName

trustedServices

protected java.util.Map trustedServices

trustStorePropFile

protected java.lang.String trustStorePropFile

callbackHander

protected SAMLCallbackHandler callbackHander
Constructor Detail

SAMLTokenIssuerConfig

public SAMLTokenIssuerConfig(java.lang.String issuerName,
                             java.lang.String cryptoProviderClassName,
                             java.util.Properties cryptoProps)
Create a new configuration with issuer name and crypto information

Parameters:
issuerName - Name of the issuer
cryptoProviderClassName - WSS4J Crypto impl class name
cryptoProps - Configuration properties of crypto impl

SAMLTokenIssuerConfig

public SAMLTokenIssuerConfig(java.lang.String configFilePath)
                      throws TrustException
Create a SAMLTokenIssuer configuration with a config file picked from the given location.

Parameters:
configFilePath - Path to the config file
Throws:
TrustException

SAMLTokenIssuerConfig

public SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
                      throws TrustException
Create a SAMLTokenIssuer configuration using the give config element

Parameters:
elem - Configuration element as an OMElement
Throws:
TrustException
Method Detail

getParameter

public org.apache.axis2.description.Parameter getParameter()
Generate an Axis2 parameter for this configuration

Returns:
An Axis2 Parameter instance with configuration information

setIssuerKeyAlias

public void setIssuerKeyAlias(java.lang.String issuerKeyAlias)

setIssuerKeyPassword

public void setIssuerKeyPassword(java.lang.String issuerKeyPassword)

setIssuerName

public void setIssuerName(java.lang.String issuerName)

setTrustedServices

public void setTrustedServices(java.util.Map trustedServices)

setTrustStorePropFile

public void setTrustStorePropFile(java.lang.String trustStorePropFile)

addTrustedServiceEndpointAddress

public void addTrustedServiceEndpointAddress(java.lang.String address,
                                             java.lang.String alias)
Add a new trusted service endpoint address with its certificate

Parameters:
address - Service endpoint address
alias - certificate alias

setCryptoProperties

public void setCryptoProperties(java.lang.String providerClassName,
                                java.util.Properties props)
Set crypto information using WSS4J mechanisms

Parameters:
providerClassName - Provider class - an implementation of org.apache.ws.security.components.crypto.Crypto
props - Configuration properties

getTrustedServices

public java.util.Map getTrustedServices()
Return the list of trusted services as a java.util.Map. The services addresses are the keys and cert aliases available under those keys.

Returns:

getCallbackHander

public SAMLCallbackHandler getCallbackHander()

setCallbackHander

public void setCallbackHander(SAMLCallbackHandler callbackHander)