org.apache.turbine.services.crypto
Interface CryptoService

All Superinterfaces:
Initable, Service
All Known Implementing Classes:
TurbineCryptoService

public interface CryptoService
extends Service

The Crypto Service manages the availability of various crypto sources. It provides a consistent interface to things like the various java.security Message Digest stuff or the Unix Crypt algorithm. It contains no actual crypto code so it should be fine to import/export everywhere.

Version:
$Id: CryptoService.java 534527 2007-05-02 16:10:59Z tv $
Author:
Henning P. Schmiedehausen

Field Summary
static java.lang.String SERVICE_NAME
          The name of the service
 
Method Summary
 CryptoAlgorithm getCryptoAlgorithm(java.lang.String algorithm)
          Returns a CryptoAlgorithm Object which represents the requested crypto algorithm.
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
The name of the service

See Also:
Constant Field Values
Method Detail

getCryptoAlgorithm

public CryptoAlgorithm getCryptoAlgorithm(java.lang.String algorithm)
                                   throws java.security.NoSuchAlgorithmException
Returns a CryptoAlgorithm Object which represents the requested crypto algorithm.

Parameters:
algorithm - Name of the requested algorithm
Returns:
An Object representing the algorithm
Throws:
java.security.NoSuchAlgorithmException - Requested algorithm is not available


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.