gnu.crypto.pad

Class PadFactory

public class PadFactory extends Object implements Registry

A Factory to instantiate padding schemes.

Version: $Revision: 1.8 $

Method Summary
static IPadgetInstance(String pad)

Returns an instance of a padding algorithm given its name.

static SetgetNames()

Returns a java.util.Set of names of padding algorithms supported by this Factory.

Method Detail

getInstance

public static final IPad getInstance(String pad)

Returns an instance of a padding algorithm given its name.

Parameters: pad the case-insensitive name of the padding algorithm.

Returns: an instance of the padding algorithm, operating with a given block size, or null if none found.

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

getNames

public static final Set getNames()

Returns a java.util.Set of names of padding algorithms supported by this Factory.

Returns: a Set of padding algorithm names (Strings).

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