org.apache.axis2.security.rahas
Class RahasConfiguration
java.lang.Object
org.apache.axis2.security.rahas.RahasConfiguration
- public class RahasConfiguration
- extends Object
Configuration manager for Rahas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RahasConfiguration
public RahasConfiguration()
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.