IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.macs
Class PKCS11MacSpec

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.macs.PKCS11MacSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec
Direct Known Subclasses:
PKCS11Rc2MacSpec, PKCS11Rc5MacSpec

public class PKCS11MacSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec

Objects of this algorithm parameters class allows an application to control the generation of PKCS#11 key-pairs using the provided JCE key generators.

Author:
Karl Scheibelhofer

Field Summary
static int DEFAULT_MAC_LENGTH
          The Constant DEFAULT_MAC_LENGTH.
 
Constructor Summary
PKCS11MacSpec(int macLength)
          Constructor taking several parameters that control where and how the key should be generated.
 
Method Summary
 int getMacLength()
          Gets the mac length.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAC_LENGTH

public static final int DEFAULT_MAC_LENGTH
The Constant DEFAULT_MAC_LENGTH. if given for macLength in constructor, the engine will use the appropriate output length for the mechanism

See Also:
Constant Field Values
Constructor Detail

PKCS11MacSpec

public PKCS11MacSpec(int macLength)
Constructor taking several parameters that control where and how the key should be generated.

Parameters:
macLength - the length of the MAC that this mechanisms will produce.
Preconditions
(tokenManager <> null)
Method Detail

getMacLength

public int getMacLength()
Gets the mac length.

Returns:
the length of the MAC that the mechanisms will produce

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6