CryptoManager.java
Singleton Class that acts as a facade for managing if strong or weak crypto
is desired.
Copyright 2000-2002 Jcorporate Ltd.
author: Michael Rimov since: Expresso 3.0
Configure the Cryptographic manager
Parameters: newConfig - the new configuration bean to configure with throws: ConfigurationException - upon configuration error
Singleton Generator. Call to get an instance of the Crypto Manager
Please Note If strong encryption is used, this class may take quite
some time in initializing due to the nature of generating a default seed for
the crypto-strength random number generator.
the ony and only instance of the Crypto Manager; throws: ChainedException - If there is a problem instantiating the crypto classes
Factory method that returns an instantiated subclass of
AbstractStringHash depending of strong
or weak crypto is desired.
An instantiated String Hashing class See Also:com.jcorporate.expresso.core.security.StringHash
public synchronized boolean isStrongCrypto()(Code)
isUsingStrongCrypto
public synchronized boolean isUsingStrongCrypto()(Code)
Returns whether the crypto manager is using strong cryptography or not.
true if a strong cryptographic provider is included
loadClasses
public synchronized void loadClasses(boolean useStrongCrypto) throws ChainedException(Code)
Loads the appropriate crypto classes. Also is split off from the constructor
for testing purposes.
Parameters: useStrongCrypto - Set to true if we desire to load the strongcryptographic classes. throws: ChainedException - upon error loading the classes.
Reconfigure lifecycle event. Destroys itself and reconstructs with
the new configuration
Parameters: newConfig - the configuration data to reconfigure with.