|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.authentication.encryption.PasswordEncryptionFactory
public class PasswordEncryptionFactory
Factory of password encryption objects implementing a given algorithm. It wraps the concrete
implementation of the PasswordEncryption
interface used for encrypting a password
according to a chosen algorithm.
getDefaultPasswordEncryption()
method. Getting others encryption can be done in order to work with passwords encrypted with
old (and then deprecated) algorithms with the getPasswordEncryption(digest)
method.
Constructor Summary | |
---|---|
PasswordEncryptionFactory()
|
Method Summary | |
---|---|
PasswordEncryption |
getDefaultPasswordEncryption()
Gets the password encryption that is used by default in Silverpeas to encrypt the user passwords and to check them. |
static PasswordEncryptionFactory |
getFactory()
Gets an instance of the factory of password encryption. |
PasswordEncryption |
getPasswordEncryption(String digest)
Gets the encryption that has computed the specified digest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordEncryptionFactory()
Method Detail |
---|
public static PasswordEncryptionFactory getFactory()
public PasswordEncryption getDefaultPasswordEncryption()
public PasswordEncryption getPasswordEncryption(String digest) throws IllegalArgumentException
digest
- the digest from which the password encryption has be found.
IllegalArgumentException
- if the digest was not computed by any of the password
encryption supported in Silverpeas.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |