|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies the Database Service Programming
Interface (SPI) methods, such as
insertCertificate
, that can be implemented by
a database service provider.
Method Summary |
|
void |
deleteCertificate(X500Name issuerName,
byte[] serialNumber)
Deletes the certificate identified by the specified issuer name, issuerName, and serial number, serialNumber, from the database managed by the database service provider. |
void |
deleteCRL(X500Name issuerName,
Date lastUpdate)
Deletes the CRL identified by the specified issuer name, issuerName, and last-update time, lastUpdate, from the database managed by the database service provider. |
void |
deletePrivateKeyByCertificate(Certificate cert)
Deletes the private key identified by the specified certificate, cert, from the database managed by the database service provider. |
void |
deletePrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey)
Deletes the private key identified by the specified public key, publicKey, from the database managed by the database service provider. |
firstCertificate()
Retrieves the first available certificate from the database provider. |
|
firstCRL()
Retrieves the first available CRL from the database provider. |
|
com.rsa.jsafe.JSAFE_PrivateKey |
firstPrivateKey()
Retrieves the first private key from the database provider. |
boolean |
hasMoreCertificates()
Returns a |
boolean |
hasMoreCRLs()
Returns a |
boolean |
hasMorePrivateKeys()
Returns a |
void |
insertCertificate(Certificate certificate)
Inserts a |
void |
insertCRL(CRL crl)
Inserts a |
void |
insertPrivateKeyByCertificate(Certificate cert,
com.rsa.jsafe.JSAFE_PrivateKey privateKey)
Inserts privateKey into the database managed by the service provider. |
void |
insertPrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey,
com.rsa.jsafe.JSAFE_PrivateKey privateKey)
Inserts privateKey into the database managed by the service provider. |
boolean |
isCertificateIteratorSetup()
Returns a |
boolean |
isCRLIteratorSetup()
Returns a |
boolean |
isPrivateKeyIteratorSetup()
Returns a |
nextCertificate()
Returns the next available certificate. |
|
nextCRL()
Returns the next available CRL. |
|
com.rsa.jsafe.JSAFE_PrivateKey |
nextPrivateKey()
Returns the next available private key. |
int |
selectCertificateByExtensions(X500Name baseName,
X509V3Extensions extensions,
Vector certList)
Retrieves one or more certificates identified by the specified extensions, extensions, and base subject name, baseName, from the database managed by the service provider. |
int |
selectCertificateByIssuerAndSerialNumber(X500Name issuerName,
byte[] serialNumber,
Vector certList)
Retrieves the certificate identified by the specified issuer name, issuerName, and serial number, serialNumber, from the database managed by the service provider and adds a copy of it to the certificate list, certList, if the certificate is not already in the list. |
int |
selectCertificateBySubject(X500Name subjectName,
Vector certList)
Retrieves one or more certificates identified by the specified subject name, subjectName, from the database managed by the service provider and adds a copy of each matching certificate to the certificate list, certList. |
int |
selectCRLByIssuerAndTime(X500Name issuerName,
Date time,
Vector crlList)
Retrieves the CRL identified by the specified issuer name, issuerName, and time, time, from the database managed by the service provider and adds a copy of the matching CRL to the CRL list, crlList. |
com.rsa.jsafe.JSAFE_PrivateKey |
selectPrivateKeyByCertificate(Certificate cert)
Retrieves the private key identified by the specified certificate, cert, from the database managed by the service provider. |
com.rsa.jsafe.JSAFE_PrivateKey |
selectPrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey)
Retrieves the private key identified by the specified public key, publicKey, from the database managed by the service provider. |
void |
setupCertificateIterator()
Sets up a certificate iterator. |
void |
setupCRLIterator()
Sets up a CRL iterator. |
void |
setupPrivateKeyIterator()
Sets up a private key iterator. |
Method Detail |
public void insertCertificate(Certificate certificate) throws NotSupportedException, DatabaseException
Certificate
, certificate,
into the database managed by the
service provider.
Note: If a given certificate is already in the
database (as determined by matching issuer names and serial
numbers), it is not added again. This is considered equivalent
to a successful insertion of the certificate into the database.Parameters
certificate | A |
Throws
NotSupportedException
- If the
provider does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void insertCRL(CRL crl) throws NotSupportedException, DatabaseException
CRL
, crl,
into the database managed by the
service provider.
Note: If a given CRL is already in the
database (as
determined by matching issuer names and last update times), it
is not added again. This is considered equivalent to a
successful insertion of the CRL into the database.Parameters
crl | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void insertPrivateKeyByCertificate(Certificate cert, com.rsa.jsafe.JSAFE_PrivateKey privateKey) throws NotSupportedException, DatabaseException
Parameters
cert | A | ||
privateKey | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void insertPrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey, com.rsa.jsafe.JSAFE_PrivateKey privateKey) throws NotSupportedException, DatabaseException
Parameters
publicKey | A | ||
key | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public int selectCertificateByIssuerAndSerialNumber(X500Name issuerName, byte[] serialNumber, Vector certList) throws NotSupportedException, DatabaseException
Parameters
issuerName | An | ||
serialNumber | A | ||
certList | A |
Returns
int
that indicates the number of
certificates added to the certList.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public int selectCertificateBySubject(X500Name subjectName, Vector certList) throws NotSupportedException, DatabaseException
Parameters
subjectName | An | ||
certList | A |
Returns
int
that indicates the number of
certificates added to the certList.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public int selectCertificateByExtensions(X500Name baseName, X509V3Extensions extensions, Vector certList) throws NotSupportedException, DatabaseException
Parameters
baseName | An null , it is
considered to match a candidate certificate. Note, however,
that some
database service providers (for example, the LDAP provider) may
refuse to perform this operation unless baseName is
specified. | ||
extensions | An | ||
certList | A |
Returns
int
that indicates the number of
certificates added to the certList.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
CertJUtils.compareExtensions(com.rsa.certj.cert.X509V3Extensions, com.rsa.certj.cert.X509V3Extensions)
public boolean isCertificateIteratorSetup() throws NotSupportedException, DatabaseException
boolean
value indicating whether a
certificate iterator is already set up or not.
Returns
true
if an iterator is set up or
false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstCertificate()
public void setupCertificateIterator() throws NotSupportedException, DatabaseException
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public Certificate firstCertificate() throws NotSupportedException, DatabaseException
nextCertificate
calls. Inserting or
deleting a certificate after calling this method may or may not
affect the behavior of subsequent nextCertificate
calls depending on the provider implementation.
Returns
Certificate
that is the first
certificate found in the database.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
nextCertificate()
hasMoreCertificates()
public Certificate nextCertificate() throws NotSupportedException, DatabaseException
DatabaseException
.
If previous calls to
nextCertificate
have exhausted all the
certificates, this call returns null
and uninstalls the iterator.
Returns
- A
Certificate
that is the next certificate
found in the database. If none is available,
this method returns null
.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstCertificate()
hasMoreCertificates()
public boolean hasMoreCertificates() throws NotSupportedException, DatabaseException
boolean
that indicates whether any
more certificates are available in the database.
Returns
boolean
with a value of
true
if there are more
certificates, false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public int selectCRLByIssuerAndTime(X500Name issuerName, Date time, Vector crlList) throws NotSupportedException, DatabaseException
Parameters
issuerName | An | ||
time | A | ||
crlList | A |
Returns
int
that indicates the number of CRLs
added to the crlList.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public boolean isCRLIteratorSetup() throws NotSupportedException, DatabaseException
boolean
value indicating whether a
CRL iterator is already set up or not.
Returns
true
if an iterator is set up or
false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstCRL()
public void setupCRLIterator() throws NotSupportedException, DatabaseException
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public CRL firstCRL() throws NotSupportedException, DatabaseException
nextCRL
calls.
Inserting or deleting a CRL after calling this method may or
may not affect the behavior of subsequent nextCRL
calls depending on the provider implementation.
Returns
CRL
that is the first CRL found in the
database.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
nextCRL()
hasMoreCRLs()
public CRL nextCRL() throws NotSupportedException, DatabaseException
Returns
CRL
that is the next CRL found in the
database.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstCRL()
hasMoreCRLs()
public boolean hasMoreCRLs() throws NotSupportedException, DatabaseException
boolean
that indicates whether any
more CRLs are available in the database.
Returns
boolean
with a value of
true
if there are more
CRLs, false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstCRL()
nextCRL()
public com.rsa.jsafe.JSAFE_PrivateKey selectPrivateKeyByCertificate(Certificate cert) throws NotSupportedException, DatabaseException
Parameters
cert | A |
Returns
JSAFE_PrivateKey
that was found in the
search. If no private key is found, null
is
returned.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public com.rsa.jsafe.JSAFE_PrivateKey selectPrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey) throws NotSupportedException, DatabaseException
Parameters
publicKey | A |
Returns
JSAFE_PrivateKey
that was found in the
search. If no private key is found, null
is
returned.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public boolean isPrivateKeyIteratorSetup() throws NotSupportedException, DatabaseException
boolean
value indicating whether a
private key iterator is already set up or not.
Returns
true
if an iterator is set up or
false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstPrivateKey()
public void setupPrivateKeyIterator() throws NotSupportedException, DatabaseException
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public com.rsa.jsafe.JSAFE_PrivateKey firstPrivateKey() throws NotSupportedException, DatabaseException
nextPrivateKey
calls. Inserting or
deleting a private key after calling this method may or may not
affect the behavior of subsequent nextPrivateKey
calls depending on the provider implementation.
Returns
JSAFE_PrivateKey
that is the first
private key found in the database.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
nextPrivateKey()
hasMorePrivateKeys()
public com.rsa.jsafe.JSAFE_PrivateKey nextPrivateKey() throws NotSupportedException, DatabaseException
Returns
JSAFE_PrivateKey
that is the next
private key found in the database.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstPrivateKey()
hasMorePrivateKeys()
public boolean hasMorePrivateKeys() throws NotSupportedException, DatabaseException
boolean
that ndicates whether any more
private keys are available.
Returns
boolean
with a value of
true
if there are more
private keys, false
otherwise.
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.See Also
firstPrivateKey()
nextPrivateKey()
public void deleteCertificate(X500Name issuerName, byte[] serialNumber) throws NotSupportedException, DatabaseException
Parameters
issuerName | An | ||
serialNumber | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void deleteCRL(X500Name issuerName, Date lastUpdate) throws NotSupportedException, DatabaseException
Parameters
issuerName | An | ||
lastUpdate | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void deletePrivateKeyByCertificate(Certificate cert) throws NotSupportedException, DatabaseException
Parameters
cert |
|
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.public void deletePrivateKeyByPublicKey(com.rsa.jsafe.JSAFE_PublicKey publicKey) throws NotSupportedException, DatabaseException
Parameters
publicKey | A |
Throws
NotSupportedException
- If the provider
does not support this SPI method.
DatabaseException
- If there is an
unrecoverable error in the database.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |