org.apache.axis2.security.rahas
Class RahasConfiguration

java.lang.Object
  extended byorg.apache.axis2.security.rahas.RahasConfiguration

public class RahasConfiguration
extends Object

Configuration manager for Rahas


Field Summary
static QName CRYPTO_PROPERTIES_FILE
           
static QName DERIVED_KEY_LENGTH
           
static QName ENCRYPTION_USER
           
static QName KEY_DERIVATION_ALGORITHM_CLASS
           
static QName PW_CALLBACK_CLASS
           
static String RAHAS_CONFIG
           
static QName SCOPE
           
static String SCOPE_OPERATION
           
static String SCOPE_SERVICE
           
static QName STS_EPR_ADDRESS
           
static QName TOKEN_STORE_CLASS
           
 
Constructor Summary
RahasConfiguration()
           
 
Method Summary
protected  ClassLoader getClassLoader()
           
protected  String getContextIdentifier()
           
protected  Hashtable getContextMap()
           
protected  org.apache.ws.security.components.crypto.Crypto getCrypto()
           
 String getCryptoClassName()
           
 Properties getCryptoProperties()
           
 String getCryptoPropertiesFile()
           
 String getDerivedKeyLength()
           
protected  Document getDocument()
           
 String getEncryptionUser()
           
 String getKeyDerivationAlgorithmClass()
           
protected  MessageContext getMsgCtx()
           
 Parameter getParameter()
           
 String getPasswordCallbackClass()
           
 CallbackHandler getPasswordCallbackRef()
           
 String getScope()
           
 String getStsEPRAddress()
           
protected  TokenStorage getTokenStore()
           
 String getTokenStoreClass()
           
 boolean isProvideEntropy()
           
protected  boolean isSender()
           
static RahasConfiguration load(MessageContext msgCtx, boolean sender)
           
protected  void resgisterContext(String identifier)
           
protected  void setClassLoader(ClassLoader classLoader)
           
protected  void setCrypto(org.apache.ws.security.components.crypto.Crypto crypto)
           
 void setCryptoClassName(String cryptoClassName)
           
 void setCryptoProperties(Properties cryptoProperties)
           
 void setCryptoPropertiesFile(String cryptoPropertiesFile)
           
 void setDerivedKeyLength(String derivedKeyLength)
           
protected  void setDocument(Document doc)
           
 void setEncryptionUser(String encryptionUser)
           
 void setKeyDerivationAlgorithmClass(String keyDerivationAlgorithmClass)
           
 void setPasswordCallbackClass(String passwordCallbackClass)
           
 void setProvideEntropy(boolean provideEntropy)
           
 void setScope(String scope)
           
 void setStsEPRAddress(String stsEPRAddress)
           
 void setTokenStoreClass(String tokenStoreClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAHAS_CONFIG

public static final String RAHAS_CONFIG
See Also:
Constant Field Values

SCOPE_SERVICE

public static final String SCOPE_SERVICE
See Also:
Constant Field Values

SCOPE_OPERATION

public static final String SCOPE_OPERATION
See Also:
Constant Field Values

SCOPE

public static final QName SCOPE

STS_EPR_ADDRESS

public static final QName STS_EPR_ADDRESS

DERIVED_KEY_LENGTH

public static final QName DERIVED_KEY_LENGTH

KEY_DERIVATION_ALGORITHM_CLASS

public static final QName KEY_DERIVATION_ALGORITHM_CLASS

TOKEN_STORE_CLASS

public static final QName TOKEN_STORE_CLASS

CRYPTO_PROPERTIES_FILE

public static final QName CRYPTO_PROPERTIES_FILE

ENCRYPTION_USER

public static final QName ENCRYPTION_USER

PW_CALLBACK_CLASS

public static final QName PW_CALLBACK_CLASS
Constructor Detail

RahasConfiguration

public RahasConfiguration()
Method Detail

load

public static RahasConfiguration load(MessageContext msgCtx,
                                      boolean sender)
                               throws Exception
Throws:
Exception

getParameter

public Parameter getParameter()

resgisterContext

protected void resgisterContext(String identifier)
                         throws RahasException
Throws:
RahasException

getScope

public String getScope()
Returns:
Returns the scope.

getStsEPRAddress

public String getStsEPRAddress()
Returns:
Returns the stsEPR.

getDerivedKeyLength

public String getDerivedKeyLength()
Returns:
Returns the derivedKeyLength.

getKeyDerivationAlgorithmClass

public String getKeyDerivationAlgorithmClass()
Returns:
Returns the keyDerivationAlgorithmClass.

setDerivedKeyLength

public void setDerivedKeyLength(String derivedKeyLength)
Parameters:
derivedKeyLength - The derivedKeyLength to set.

setKeyDerivationAlgorithmClass

public void setKeyDerivationAlgorithmClass(String keyDerivationAlgorithmClass)
Parameters:
keyDerivationAlgorithmClass - The keyDerivationAlgorithmClass to set.

setScope

public void setScope(String scope)
Parameters:
scope - The scope to set.

setStsEPRAddress

public void setStsEPRAddress(String stsEPRAddress)
Parameters:
stsEPRAddress - The stsEPRAddress to set.

getContextMap

protected Hashtable getContextMap()
Returns:
Returns the contextMap.

getTokenStore

protected TokenStorage getTokenStore()
                              throws Exception
Returns:
Returns the tokenStore.
Throws:
Exception

getTokenStoreClass

public String getTokenStoreClass()
Returns:
Returns the tokenStoreClass.

getCryptoProperties

public Properties getCryptoProperties()
Returns:
Returns the cryptoProperties.

setCryptoProperties

public void setCryptoProperties(Properties cryptoProperties)
Parameters:
cryptoProperties - The cryptoProperties to set.

setTokenStoreClass

public void setTokenStoreClass(String tokenStoreClass)
Parameters:
tokenStoreClass - The tokenStoreClass to set.

getCryptoPropertiesFile

public String getCryptoPropertiesFile()
Returns:
Returns the cryptoPropertiesFile.

setCryptoPropertiesFile

public void setCryptoPropertiesFile(String cryptoPropertiesFile)
Parameters:
cryptoPropertiesFile - The cryptoPropertiesFile to set.

getCryptoClassName

public String getCryptoClassName()
Returns:
Returns the cryptoClassName.

setCryptoClassName

public void setCryptoClassName(String cryptoClassName)
Parameters:
cryptoClassName - The cryptoClassName to set.

isSender

protected boolean isSender()
Returns:
Returns the sender.

getDocument

protected Document getDocument()
Returns:
Returns the doc.

setDocument

protected void setDocument(Document doc)
Parameters:
doc - The doc to set.

getPasswordCallbackClass

public String getPasswordCallbackClass()
Returns:
Returns the passwordCallbackClass.

getPasswordCallbackRef

public CallbackHandler getPasswordCallbackRef()
Returns:
Returns the passwordCallbackRef.

setPasswordCallbackClass

public void setPasswordCallbackClass(String passwordCallbackClass)
Parameters:
passwordCallbackClass - The passwordCallbackClass to set.

getEncryptionUser

public String getEncryptionUser()
Returns:
Returns the encryptionUser.

setEncryptionUser

public void setEncryptionUser(String encryptionUser)
Parameters:
encryptionUser - The encryptionUser to set.

isProvideEntropy

public boolean isProvideEntropy()
Returns:
Returns the provideEntropy.

setProvideEntropy

public void setProvideEntropy(boolean provideEntropy)
Parameters:
provideEntropy - The provideEntropy to set.

getCrypto

protected org.apache.ws.security.components.crypto.Crypto getCrypto()
Returns:
Returns the crypto.

setCrypto

protected void setCrypto(org.apache.ws.security.components.crypto.Crypto crypto)
Parameters:
crypto - The crypto to set.

getClassLoader

protected ClassLoader getClassLoader()
Returns:
Returns the classLoader.

setClassLoader

protected void setClassLoader(ClassLoader classLoader)
Parameters:
classLoader - The classLoader to set.

getMsgCtx

protected MessageContext getMsgCtx()
Returns:
Returns the msgCtx.

getContextIdentifier

protected String getContextIdentifier()
Returns:
Returns the contextIdentifier.