org.silverpeas.util.crypto
Class CipherFactory

java.lang.Object
  extended by org.silverpeas.util.crypto.CipherFactory

public class CipherFactory
extends Object

A factory of the ciphers supported by Silverpeas.


Constructor Summary
CipherFactory()
           
 
Method Summary
 Cipher getCipher(CryptographicAlgorithmName cipherName)
          Gets the cipher identified by the specified cryptographic algorithm name.
static CipherFactory getFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherFactory

public CipherFactory()
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.


Copyright © 2016 Silverpeas. All Rights Reserved.