IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider
Class NullCipher

java.lang.Object
  extended by javax.crypto.CipherSpi
      extended by iaik.pkcs.pkcs11.provider.NullCipher
All Implemented Interfaces:
PKCS11EngineClass

public class NullCipher
extends javax.crypto.CipherSpi
implements PKCS11EngineClass

This is just a null-cipher that does nothing; i.e. it jsut maps the input to the output. It is jsut used in the workaround for the bug in some JDKs that prevents inserting a signed provider at the first position.

Author:
Karl Scheibelhofer

Constructor Summary
NullCipher()
          Default constructor.
 
Method Summary
 boolean isSupportedBy(TokenManager tokenManager)
          Always returns true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCipher

public NullCipher()
Default constructor.

Method Detail

isSupportedBy

public boolean isSupportedBy(TokenManager tokenManager)
Always returns true.

Specified by:
isSupportedBy in interface PKCS11EngineClass
Parameters:
tokenManager - Not used by this implementation.
Returns:
True.
Postconditions
(result == true)

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