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
ROLE
Constructor and Description |
---|
DefaultCryptoService() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method
|
void |
dispose()
Avalon component lifecycle method
|
CryptoAlgorithm |
getCryptoAlgorithm(String algo)
Returns a CryptoAlgorithm Object which represents the requested crypto
algorithm.
|
void |
initialize()
Initialize the service
|
public DefaultCryptoService()
public CryptoAlgorithm getCryptoAlgorithm(String algo) throws NoSuchAlgorithmException
getCryptoAlgorithm
in interface CryptoService
algo
- Name of the requested algorithmNoSuchAlgorithmException
- Requested algorithm is not availableCryptoService.getCryptoAlgorithm(java.lang.String)
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
conf
- the configurationorg.apache.avalon.framework.configuration.ConfigurationException
- if not foundpublic void initialize() throws Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
Exception
- if initialization failsInitializable.initialize()
public void dispose()
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.