Class CipherFactory
- java.lang.Object
-
- org.silverpeas.core.security.encryption.cipher.CipherFactory
-
public class CipherFactory extends Object
A factory of the ciphers supported by Silverpeas.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cipher
getCipher(CryptographicAlgorithmName cipherName)
Gets the cipher identified by the specified cryptographic algorithm name.static CipherFactory
getFactory()
-
-
-
Method Detail
-
getFactory
public static CipherFactory getFactory()
-
getCipher
public Cipher getCipher(CryptographicAlgorithmName cipherName)
Gets the cipher identified by the specified cryptographic algorithm name.- Parameters:
cipherName
- a name of a cryptographic cipher.- Returns:
- the cipher that matches the specified name or null if no such cipher exists with the given algorithm name.
-
-