com.rsa.certj

Class Service

java.lang.Object
  |
  +--com.rsa.certj.Service
Direct Known Subclasses:
DatabaseService, PKIService

public class Service
extends Object

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.

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

See Also

CertJ.bindService(int, java.lang.String)

Method Summary

static Service

getInstance(CertJ certJ, int type)

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

 String[]

listProviderNames()

Returns an array of String objects that contains the names of the bound providers.

 String

toString()

Returns a String describing the service providers of this Service object.

 void

unbind()

Does nothing.

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

Method Detail

getInstance

public static Service getInstance(CertJ certJ,
                                  int type)
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.


listProviderNames

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

Returns

A String array that contains the names of the providers bound to this object.

toString

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

Overrides

toString in class Object

Returns

A String that describes the service providers.

unbind

public void unbind()
Does nothing. This method is a placeholder for any subclass of this class to overwrite the behavior.


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