edu.vt.middleware.crypt.symmetric
Class AlgorithmSpec

java.lang.Object
  extended by edu.vt.middleware.crypt.symmetric.AlgorithmSpec

public class AlgorithmSpec
extends Object

Describes a symmetric cipher algorithm in terms of a (name, mode, padding) tuple.

Version:
$Revision: 1818 $
Author:
Middleware Services

Constructor Summary
AlgorithmSpec(String algorithm)
          Creates a new instance for the given cipher algorithm name.
AlgorithmSpec(String algorithm, String cipherMode, String cipherPadding)
          Creates a new instance for the given cipher algorithm name.
 
Method Summary
 String getMode()
          Gets the cipher mode.
 String getName()
          Gets the cipher algorithm name.
 String getPadding()
          Gets the cipher padding scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmSpec

public AlgorithmSpec(String algorithm)
Creates a new instance for the given cipher algorithm name.

Parameters:
algorithm - Cipher algorithm name.

AlgorithmSpec

public AlgorithmSpec(String algorithm,
                     String cipherMode,
                     String cipherPadding)
Creates a new instance for the given cipher algorithm name.

Parameters:
algorithm - Cipher algorithm name.
cipherMode - Cipher mode.
cipherPadding - Cipher padding scheme name.
Method Detail

getName

public String getName()
Gets the cipher algorithm name.

Returns:
Algorithm name.

getMode

public String getMode()
Gets the cipher mode.

Returns:
Cipher mode, e.g. CBC, OFB.

getPadding

public String getPadding()
Gets the cipher padding scheme.

Returns:
Padding scheme name, e.g. PKCS5Padding.


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.