IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyagreements
Class PKCS11KeyAgreement

java.lang.Object
  extended by javax.crypto.KeyAgreementSpi
      extended by iaik.pkcs.pkcs11.provider.keyagreements.PKCS11KeyAgreement
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
DhKeyAgreement, EcDhKeyAgreement, X942DhKeyAgreement

public abstract class PKCS11KeyAgreement
extends javax.crypto.KeyAgreementSpi
implements PKCS11EngineClass

This is a generic base implementation for a key agreement. It serves as base class for concrete implementations that use a PKCS#11 token to calculate the cryptographic operations. This implementation must be initialized using a PKCS11KeyAgreementSpec. Other types of initialization are unsupported. This is necessary, because this implementation requires certain information for PKCS#11 operations, which it cannot get by other means.

Author:
Karl Scheibelhofer

Constructor Summary
PKCS11KeyAgreement()
          Default constructor.
 
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
 

Constructor Detail

PKCS11KeyAgreement

public PKCS11KeyAgreement()
Default constructor.

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