RSA BSAFE CERT-J

Certificate Management Components for Java

Javadoc Search  Print

Provider Class Reference

This class is a parent of all provider classes.

It holds the service type and the name of the service provider.

Inheritance diagram for Provider:

CMP CRLCertStatus CRS DefaultRandom FlatFileDB LDAPDatabase MemoryDB NativeDB OCSP PKCS11DB PKIXCertPath X509V1CertPath List of all members.

Public Methods

 Provider (int type, String name) throws InvalidParameterException
 Constructs a Provider object and initializes it with name for certJ methods. More...

int Provider:: getType ()
 Returns the type of the service provider for this Provider object. More...

String Provider:: getName ()
 Returns the name of the service provider for this object. More...

ProviderImplementation Provider:: instantiate (CertJ certJ) throws ProviderManagementException
 Instantiates a ProviderImplementation object for certJ. More...


Constructor & Destructor Documentation

Provider::Provider int    type,
String    name
throws InvalidParameterException [inline];
 

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.

Exceptions:
InvalidParameterException If the name argument is null.


Member Function Documentation

String Provider::getName   [inline];
 

Returns the name of the service provider for this object.

Returns:
A String indicating the name of the service provider.

int Provider::getType   [inline];
 

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:
com.rsa.certj.CertJ

ProviderImplementation Provider::instantiate CertJ    certJ throws ProviderManagementException [inline];
 

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.

Exceptions:
ProviderManagementException If you do not provide a subclass instantiate method to replace this method.
See also:
com.rsa.certj.CertJregisterService(Provider) , com.rsa.certj.CertJregisterService(Provider, int)

Reimplemented in CMP.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 001-047001-212-001-001 - 2.1.2