|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.Provider | +--com.rsa.certj.provider.db.MemoryDB
This class implements a database service provider that stores
entries in memory. The application can supply the
Vector
objects used by the
database, or the database can create temporary Vector
objects. Databases of
this type can be useful in caching, or in processing lists of
certificates, CRLs, or private keys returned by other Cert-J
methods. The stored copy of the private key is not encrypted.
Constructor Summary |
|
MemoryDB(String name)
Constructs a |
|
MemoryDB(String name,
Vector certificates,
Vector crls,
Vector privateKeys,
Vector publicKeys)
Constructs a |
Method Summary |
|
instantiate(CertJ certJ)
Creates a |
Methods inherited from class com.rsa.certj.Provider |
getName, getType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryDB(String name) throws InvalidParameterException
MemoryDB
object with the provider
name, name.Parameters
name | A |
Throws
InvalidParameterException
- If
name argument is invalid.public MemoryDB(String name, Vector certificates, Vector crls, Vector privateKeys, Vector publicKeys) throws InvalidParameterException
MemoryDB
object and initializes
its certificate store, CRL store, and key store with the
Vector
objects given by the corresponding
arguments.Parameters
name | A | ||
certificates | A | ||
crls | A | ||
privateKeys | A | ||
publicKeys | A |
Throws
InvalidParameterException
- If the
name argument is invalid or
privateKeys and publicKeys are not the same
size.Method Detail |
public ProviderImplementation instantiate(CertJ certJ) throws ProviderManagementException
ProviderImplementation
object that
handles in-memory database SPI methods.
This method is called by CertJ.registerService
when
an object of the MemoryDB
class is being
registered; applications do not have to call this method.Overrides
instantiate
in class Provider
Parameters
certJ | A |
Returns
ProviderImplementation
object that
handles the in-memory database SPI implementations.
Throws
ProviderManagementException
- If
instantiation of the in-memory provider fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |