IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.signatures
Class PKCS11Signature

java.lang.Object
  extended by java.security.SignatureSpi
      extended by iaik.pkcs.pkcs11.provider.signatures.PKCS11Signature
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
ExternalHashSignature, InternalMd2RsaSignature, InternalMd5RsaSignature, InternalRipeMd128RsaSignature, InternalRipeMd160RsaSignature, InternalSha1DsaSignature, InternalSha1EcdsaSignature, InternalSha1RsaPssSignature, InternalSha1RsaSignature, InternalSha1RsaX931Signature, InternalSha256RsaPssSignature, InternalSha256RsaSignature, InternalSha384RsaPssSignature, InternalSha384RsaSignature, InternalSha512RsaPssSignature, InternalSha512RsaSignature, PKCS11BufferingSignature

public abstract class PKCS11Signature
extends java.security.SignatureSpi
implements PKCS11EngineClass

This is an implementation of a Signature class that uses the IAIK PKCS#11 wrapper to access the token. It only works with IAIKPKCS11PrivateKey and IAIKPKCS11PublicKey. It is the base class for the versions that do internal or external hashing. 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.security.SignatureSpi
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