IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.ciphers
Class PKCS11Cipher

java.lang.Object
  extended by javax.crypto.CipherSpi
      extended by iaik.pkcs.pkcs11.provider.ciphers.PKCS11Cipher
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
BlockCipher, Rc4Cipher, RsaCipher

public abstract class PKCS11Cipher
extends javax.crypto.CipherSpi
implements PKCS11EngineClass

This is an implementation of a Cipher class that uses the IAIK PKCS#11 wrapper to access the token. With IAIKPKCS11PrivateKey, IAIKPKCS11PublicKey and IAIKPKCS11SecretKey it works with the underlying PKCS#11 module. 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 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