|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.Provider
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 |
Method Summary |
|
getName()
Returns the name of the service provider for this object. |
|
int |
getType()
Returns the type of the service provider for this
|
instantiate(CertJ certJ)
Instantiates a |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Provider(int type, String name) throws InvalidParameterException
Provider
object and initializes it
with name for certJ
methods. This
method should be overwritten by each service provider subclass.Parameters
type | An | ||
name | A |
Throws
InvalidParameterException
- If the
name argument is null
.Method Detail |
public int getType()
Provider
object.
See the previously defined SPT_*
fields in the
CertJ
class.
Returns
int
indicating the type of the service
provider.See Also
CertJ
public String getName()
Returns
String
indicating the name of the
service provider.public ProviderImplementation instantiate(CertJ certJ) throws ProviderManagementException
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 |
Returns
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |