org.apache.fulcrum.crypto
Class DefaultCryptoService
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.crypto.DefaultCryptoService
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, CryptoService, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe
- public class DefaultCryptoService
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements CryptoService, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe
An implementation of CryptoService that uses either supplied crypto
Algorithms (provided in the component config xml file) or tries to get them via
the normal java mechanisms if this fails.
- Version:
- $Id: DefaultCryptoService.java 581797 2007-10-04 08:26:18Z sgoeschl $
- Author:
- Eric Pugh, Henning P. Schmiedehausen
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method |
void |
dispose()
Avalon component lifecycle method |
CryptoAlgorithm |
getCryptoAlgorithm(java.lang.String algo)
Returns a CryptoAlgorithm Object which represents the requested
crypto algorithm. |
void |
initialize()
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCryptoService
public DefaultCryptoService()
getCryptoAlgorithm
public CryptoAlgorithm getCryptoAlgorithm(java.lang.String algo)
throws java.security.NoSuchAlgorithmException
- Returns a CryptoAlgorithm Object which represents the requested
crypto algorithm.
- Specified by:
getCryptoAlgorithm
in interface CryptoService
- Parameters:
algo
- Name of the requested algorithm
- Returns:
- An Object representing the algorithm
- Throws:
java.security.NoSuchAlgorithmException
- Requested algorithm is not available
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Avalon component lifecycle method
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
initialize
public void initialize()
throws java.lang.Exception
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
java.lang.Exception
- See Also:
Initializable.initialize()
dispose
public void dispose()
- Avalon component lifecycle method
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.