IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.macs
Class PKCS11Mac

java.lang.Object
  extended by javax.crypto.MacSpi
      extended by iaik.pkcs.pkcs11.provider.macs.PKCS11Mac
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
AesMac, Cast128Mac, Cast3Mac, CastMac, DesEdeMac, DesMac, IdeaMac, Md2HMac, Md5HMac, Rc2Mac, Rc5Mac, RipeMd128HMac, RipeMd160HMac, Sha1HMac, Sha256HMac, Sha384HMac, Sha512HMac, SSL3Md5Mac, SSL3Sha1Mac

public abstract class PKCS11Mac
extends javax.crypto.MacSpi
implements PKCS11EngineClass

This is an implementation of a MAC class that uses the IAIK PKCS#11 wrapper to access the token. It only works with IAIKPKCS11SecretKey. It is the base class for the implementations for the various algorithms. If it is used with non-PKCS#11 keys, keys which are not of the aforementioned classes, it uses a software cipher of the configured delegate provider. It is the base class for the implementations of the various algorithms.

Author:
Karl Scheibelhofer

Method Summary
 boolean isSupportedBy(TokenManager tokenManager)
          Check, if the current token of the given token manager supports the required features for this engine class.
 
Methods inherited from class javax.crypto.MacSpi
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSupportedBy

public boolean isSupportedBy(TokenManager tokenManager)
Check, if the current token of the given token manager supports the required features for this engine class.

Specified by:
isSupportedBy in interface PKCS11EngineClass
Parameters:
tokenManager - The token manager. Used to get information about the current token.
Returns:
True, if this engine class can be used with the currently present token of the given token manager.
Preconditions
(tokenManager <> null)

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