gnu.crypto.cipher

Class CipherFactory

public class CipherFactory extends Object implements Registry

A Factory to instantiate symmetric block cipher instances.

Version: $Revision: 1.12 $

Method Summary
static IBlockCiphergetInstance(String name)

Returns an instance of a block cipher given its name.

static SetgetNames()

Returns a Set of symmetric key block cipher implementation names supported by this Factory.

Method Detail

getInstance

public static final IBlockCipher getInstance(String name)

Returns an instance of a block cipher given its name.

Parameters: name the case-insensitive name of the symmetric-key block cipher algorithm.

Returns: an instance of the designated cipher algorithm, or null if none is found.

Throws: InternalError if the implementation does not pass its self-test.

getNames

public static final Set getNames()

Returns a Set of symmetric key block cipher implementation names supported by this Factory.

Returns: a Set of block cipher names (Strings).

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.