org.apache.turbine.services.crypto
Class TurbineCrypto

java.lang.Object
  extended byorg.apache.turbine.services.crypto.TurbineCrypto

public abstract class TurbineCrypto
extends java.lang.Object

This is a facade class for the CryptoService. Here are the static methods that call related methods of the various implementations of the Crypto Security Service, according to the settings in TurbineResources.

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

Constructor Summary
TurbineCrypto()
           
 
Method Summary
static CryptoAlgorithm getCryptoAlgorithm(java.lang.String algo)
          Returns a CryptoAlgorithm Object which represents the requested crypto algorithm.
static CryptoService getService()
          Retrieves an implementation of the CryptoService, based on the settings in TurbineResources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurbineCrypto

public TurbineCrypto()
Method Detail

getService

public static CryptoService getService()
Retrieves an implementation of the CryptoService, based on the settings in TurbineResources.

Returns:
an implementation of the CryptoService

getCryptoAlgorithm

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

Parameters:
algo - 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.