IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider
Class DelegateProvider

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.Configurable
      extended by iaik.pkcs.pkcs11.provider.DelegateProvider
Direct Known Subclasses:
DefaultDelegateProvider

public abstract class DelegateProvider
extends Configurable

This id the interface to a delegate provider. A delegate provider provides delegation engines for several types of JCA and JCE engine; for instance, this includes signatures, hashes and ciphers.

Author:
Karl Scheibelhofer

Constructor Summary
DelegateProvider()
           
 
Method Summary
abstract  javax.crypto.Cipher getCipher(java.lang.String algorithmName)
          Get a cipher implementation for the given algorithm.
abstract  javax.crypto.KeyAgreement getKeyAgreement(java.lang.String algorithmName)
          Get a key agreement implementation for the given algorithm.
abstract  java.security.KeyFactory getKeyFactory(java.lang.String algorithmName)
          Get a key factory implementation for the given algorithm.
abstract  javax.crypto.Mac getMac(java.lang.String algorithmName)
          Get a MAC implementation for the given algorithm.
abstract  java.security.MessageDigest getMessageDigest(java.lang.String algorithmName)
          Get a message digest implementation for the given algorithm.
abstract  java.security.AlgorithmParameters getParameters(java.lang.String algorithmName)
          Get a algorithm parameters implementation of the given algorithm.
abstract  javax.crypto.SecretKeyFactory getSecretKeyFactory(java.lang.String algorithmName)
          Get a secret key factory implementation for the given algorithm.
abstract  java.security.SecureRandom getSecureRandom(java.lang.String algorithmName)
          Get a secure random implementation for the given algorithm.
abstract  java.security.Signature getSignature(java.lang.String algorithmName)
          Get a signature implementation for the given algorithm.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.Configurable
addProperties, getProperties, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateProvider

public DelegateProvider()
Method Detail

getCipher

public abstract javax.crypto.Cipher getCipher(java.lang.String algorithmName)
Get a cipher implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

getParameters

public abstract java.security.AlgorithmParameters getParameters(java.lang.String algorithmName)
Get a algorithm parameters implementation of the given algorithm.

Parameters:
algorithmName - The algorithm name.
Returns:
The implementation object of the requested algorithm parameters or null, if there is no appropriate implementation available.

getKeyAgreement

public abstract javax.crypto.KeyAgreement getKeyAgreement(java.lang.String algorithmName)
Get a key agreement implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

getKeyFactory

public abstract java.security.KeyFactory getKeyFactory(java.lang.String algorithmName)
Get a key factory implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The key factory implementation or null if there is no appropriate implementation available.

getMac

public abstract javax.crypto.Mac getMac(java.lang.String algorithmName)
Get a MAC implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

getMessageDigest

public abstract java.security.MessageDigest getMessageDigest(java.lang.String algorithmName)
Get a message digest implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

getSecretKeyFactory

public abstract javax.crypto.SecretKeyFactory getSecretKeyFactory(java.lang.String algorithmName)
Get a secret key factory implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The scret key factory implementation or null if there is no appropriate implementation available.

getSecureRandom

public abstract java.security.SecureRandom getSecureRandom(java.lang.String algorithmName)
Get a secure random implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm or null to get the default.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

getSignature

public abstract java.security.Signature getSignature(java.lang.String algorithmName)
Get a signature implementation for the given algorithm.

Parameters:
algorithmName - The name of the requested algorithm.
Returns:
The cipher implementation or null if there is no appropriate implementation available.

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