com.rsa.certj

Class Provider

java.lang.Object
  |
  +--com.rsa.certj.Provider
Direct Known Subclasses:
CMP, CRLCertStatus, CRS, DefaultRandom, FlatFileDB, LDAPDatabase, MemoryDB, NativeDB, OCSP, PKCS11DB, PKIXCertPath, X509V1CertPath

public abstract class Provider
extends Object

This class is a parent of all provider classes. It holds the service type and the name of the service provider.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.


Constructor Summary

Provider(int type, String name)

Constructs a Provider object and initializes it with name for certJ methods.

 

Method Summary

 String

getName()

Returns the name of the service provider for this object.

 int

getType()

Returns the type of the service provider for this Provider object.

 ProviderImplementation

instantiate(CertJ certJ)

Instantiates a ProviderImplementation object for certJ.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Provider

public Provider(int type,
                String name)
         throws InvalidParameterException
Constructs a Provider object and initializes it with name for certJ methods. This method should be overwritten by each service provider subclass.

Parameters

         type  

An int indicating the type of the service provider.

         name  

A String indicating the name of the service provider.

Throws

InvalidParameterException - If the name argument is null.
Method Detail

getType

public int getType()
Returns the type of the service provider for this Provider object. See the previously defined SPT_* fields in the CertJ class.

Returns

An int indicating the type of the service provider.

See Also

CertJ

getName

public String getName()
Returns the name of the service provider for this object.

Returns

A String indicating the name of the service provider.

instantiate

public ProviderImplementation instantiate(CertJ certJ)
                                   throws ProviderManagementException
Instantiates a ProviderImplementation object for certJ. The object returned should be an instance of a class that implements all the SPI methods of the particular type of service interface class. Call this method when the provider object is instantiated. Every subclass of this class should have its own definition of this class.

Parameters

         certJ  

A CertJ object for which the created provider is registered.

Returns

A ProviderImplementation object.

Throws

ProviderManagementException - If you do not provide a subclass instantiate method to replace this method.

See Also

CertJ.registerService(Provider)

CertJ.registerService(Provider, int)


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000