org.xwiki.crypto.passwd.internal
Class DefaultPasswordCryptoServiceConfiguration

java.lang.Object
  extended by org.xwiki.crypto.passwd.internal.DefaultPasswordCryptoServiceConfiguration
All Implemented Interfaces:
PasswordCryptoServiceConfiguration

@Component
public class DefaultPasswordCryptoServiceConfiguration
extends java.lang.Object
implements PasswordCryptoServiceConfiguration

Default implementation of PasswordCryptoServiceConfiguration.

Version:
$Id$

Constructor Summary
DefaultPasswordCryptoServiceConfiguration()
           
 
Method Summary
 java.lang.Class<? extends PasswordCiphertext> getCipherClass()
          
 java.lang.Class<? extends KeyDerivationFunction> getKeyDerivationFunctionClassForEncryption()
          
 java.lang.Class<? extends KeyDerivationFunction> getKeyDerivationFunctionClassForPasswordVerification()
          
 java.util.Properties getKeyDerivationFunctionPropertiesForEncryption()
          
 java.util.Properties getKeyDerivationFunctionPropertiesForPasswordVerification()
          
 java.lang.Class<? extends PasswordVerificationFunction> getPasswordVerificationFunctionClass()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPasswordCryptoServiceConfiguration

public DefaultPasswordCryptoServiceConfiguration()
Method Detail

getCipherClass

public java.lang.Class<? extends PasswordCiphertext> getCipherClass()

Specified by:
getCipherClass in interface PasswordCryptoServiceConfiguration
Returns:
the type of cipher to use for encryption.
See Also:
PasswordCryptoServiceConfiguration.getCipherClass()

getKeyDerivationFunctionClassForEncryption

public java.lang.Class<? extends KeyDerivationFunction> getKeyDerivationFunctionClassForEncryption()

Specified by:
getKeyDerivationFunctionClassForEncryption in interface PasswordCryptoServiceConfiguration
Returns:
the type of key derivation function to use for encryption.
See Also:
PasswordCryptoServiceConfiguration.getKeyDerivationFunctionClassForEncryption()

getKeyDerivationFunctionPropertiesForEncryption

public java.util.Properties getKeyDerivationFunctionPropertiesForEncryption()

Specified by:
getKeyDerivationFunctionPropertiesForEncryption in interface PasswordCryptoServiceConfiguration
Returns:
the Properties for initializing the KeyDerivationFunction used for encryption.
See Also:
PasswordCryptoServiceConfiguration.getKeyDerivationFunctionPropertiesForEncryption()

getPasswordVerificationFunctionClass

public java.lang.Class<? extends PasswordVerificationFunction> getPasswordVerificationFunctionClass()

Specified by:
getPasswordVerificationFunctionClass in interface PasswordCryptoServiceConfiguration
Returns:
the type of password validation function to use for protecting user passwords.
See Also:
PasswordCryptoServiceConfiguration.getPasswordVerificationFunctionClass()

getKeyDerivationFunctionClassForPasswordVerification

public java.lang.Class<? extends KeyDerivationFunction> getKeyDerivationFunctionClassForPasswordVerification()

Specified by:
getKeyDerivationFunctionClassForPasswordVerification in interface PasswordCryptoServiceConfiguration
Returns:
the type of key derivation function to use for password verification.
See Also:
PasswordCryptoServiceConfiguration.getKeyDerivationFunctionClassForPasswordVerification()

getKeyDerivationFunctionPropertiesForPasswordVerification

public java.util.Properties getKeyDerivationFunctionPropertiesForPasswordVerification()

Specified by:
getKeyDerivationFunctionPropertiesForPasswordVerification in interface PasswordCryptoServiceConfiguration
Returns:
the Properties for initializing the key derivation function used for password verification.
See Also:
PasswordCryptoServiceConfiguration.getKeyDerivationFunctionPropertiesForPasswordVerification()


Copyright © 2004-2011 XWiki. All Rights Reserved.