org.apache.fulcrum.crypto
Interface CryptoService

All Known Implementing Classes:
DefaultCryptoService

public interface CryptoService

An implementation of CryptoService that uses either supplied crypto Algorithms (provided in Fulcrum.properties) or tries to get them via the normal java mechanisms if this fails.

Author:
Eric Pugh, Stephen McConnell

Field Summary
static String ROLE
           
 
Method Summary
 CryptoAlgorithm getCryptoAlgorithm(String algo)
          Returns a CryptoAlgorithm Object which represents the requested crypto algorithm.
 

Field Detail

ROLE

static final String ROLE
Method Detail

getCryptoAlgorithm

CryptoAlgorithm getCryptoAlgorithm(String algo)
                                   throws 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:
NoSuchAlgorithmException - Requested algorithm is not available


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.