RSA BSAFE CERT-J

Certificate Management Components for Java

Javadoc Search  Print

Service Class Reference

This class represents a service that consists of one or more providers of the same type.

Certain Cert-J APIs, such as database APIs, are defined by a particular service. To obtain an object of a service, use the bindService method of the CertJ class.

See also:
com.rsa.certj.CertJbindService

Inheritance diagram for Service:

DatabaseService PKIService List of all members.

Public Methods

String [] Service:: listProviderNames ()
 Returns an array of String objects that contains the names of the bound providers. More...

String Service:: toString ()
 Returns a String describing the service providers of this Service object. More...

void Service:: unbind ()
 Does nothing. More...


Static Public Methods

Service Service:: getInstance (CertJ certJ, int type)
 Creates and initializes a Service object of type type for certJ. More...


Protected Methods

 Service (CertJ certJ)
 Constructs a Service for certJ. More...

int Service:: getProviderCount ()
 Returns the number of providers in this service object. More...

ProviderImplementation Service:: getProviderAt (int index)
 Returns the provider of this Service object at index position. More...

void Service:: addProvider (ProviderImplementation implementor)
 Adds implementor to this Service. More...


Constructor & Destructor Documentation

Service::Service CertJ    certJ [inline, protected];
 

Constructs a Service for certJ.

Parameters:
certJ The CertJ that represents the current CertJ object.


Member Function Documentation

void Service::addProvider ProviderImplementation    implementor [inline, protected];
 

Adds implementor to this Service.

Parameters:
implementor A ProviderImplementation to be added to this Service.

Service Service::getInstance CertJ    certJ,
int    type
[inline, static];
 

Creates and initializes a Service object of type type for certJ.

Parameters:
certJ A CertJ object that represents the current CertJ object.
type An int that specifies the type of service provider.

ProviderImplementation Service::getProviderAt int    index [inline, protected];
 

Returns the provider of this Service object at index position.

Parameters:
index An int indicating the position of the providerbeing looked for.
Returns:
A ProviderImplementation that contains the provider found, or null if index is out of range.

int Service::getProviderCount   [inline, protected];
 

Returns the number of providers in this service object.

Returns:
An int indicating the size of the provider list.

String [] Service::listProviderNames