IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.signatures
Class ExternalHashSignature

java.lang.Object
  extended by java.security.SignatureSpi
      extended by iaik.pkcs.pkcs11.provider.signatures.PKCS11Signature
          extended by iaik.pkcs.pkcs11.provider.signatures.ExternalHashSignature
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
ExternalMd2RsaSignature, ExternalMd5RsaSignature, ExternalRipeMd128RsaSignature, ExternalRipeMd160EcdsaSignature, ExternalRipeMd160RsaSignature, ExternalRipeMd256RsaSignature, ExternalSha1DsaSignature, ExternalSha1EcdsaSignature, ExternalSha1RsaPssSignature, ExternalSha1RsaSignature, ExternalSha1RsaX931Signature, ExternalSha224EcdsaSignature, ExternalSha256DsaSignature, ExternalSha256EcdsaSignature, ExternalSha256RsaPssSignature, ExternalSha256RsaSignature, ExternalSha384EcdsaSignature, ExternalSha384RsaPssSignature, ExternalSha384RsaSignature, ExternalSha512EcdsaSignature, ExternalSha512RsaPssSignature, ExternalSha512RsaSignature, ExternalWhirlpoolEcdsaSignature

public abstract class ExternalHashSignature
extends PKCS11Signature

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. This version uses creates the hash off-card. This class generates the hash itself using a MessageDigest object. After hashing it send the generated hash to the token for signing. A subclass can decide which concrete algorithm to use.

Author:
Karl Scheibelhofer

Method Summary
 
Methods inherited from class iaik.pkcs.pkcs11.provider.signatures.PKCS11Signature
isSupportedBy
 
Methods inherited from class java.security.SignatureSpi
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 


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