org.apache.geronimo.management.geronimo
Interface CertificateStore

All Known Implementing Classes:
FileCertificateStore

public interface CertificateStore

Management interface for dealing with a specific Certificate Store


Method Summary
 boolean containsCertificate(BigInteger sNo)
          This method checks if a certificate with a given serial number exists in the store.
 Certificate getCACertificate()
          This method returns the CA's certificate stored in the store.
 Certificate getCertificate(BigInteger sNo)
          This method returns a Certificate with a given serial number (if it exists in the store)
 String getCertificateBase64Text(BigInteger sNo)
          This method returns base64 encoded certificate with a given serial number (if it exists in the store)
 BigInteger getHighestSerialNumber()
          This method returns the highest certificate serial number in the store.
 BigInteger getNextSerialNumber()
          This method returns the 'highest certificate serial number plus ONE' and increments the highest serial number in the store.
 boolean setCertificateChallenge(BigInteger sNo, String challenge)
          This method stores the challenge phrase against the specified certificate serial number
 boolean storeCACertificate(Certificate cert)
          This method stores the CA's certificate in the store.
 void storeCertificate(Certificate cert)
          This method stores a given certificate.
 

Method Detail

storeCertificate

void storeCertificate(Certificate cert)
                      throws CertificateStoreException
This method stores a given certificate.

Parameters:
cert - Certificate to be stored
Throws:
CertificateStoreException

getCertificate

Certificate getCertificate(BigInteger sNo)
                           throws CertificateStoreException
This method returns a Certificate with a given serial number (if it exists in the store)

Parameters:
sNo - Serial Number of the certificate to be retrieved.
Throws:
CertificateStoreException

getCertificateBase64Text

String getCertificateBase64Text(BigInteger sNo)
                                throws CertificateStoreException
This method returns base64 encoded certificate with a given serial number (if it exists in the store)

Parameters:
sNo - Serial Number of the certificate to be retrieved.
Throws:
CertificateStoreException

getHighestSerialNumber

BigInteger getHighestSerialNumber()
                                  throws CertificateStoreException
This method returns the highest certificate serial number in the store.

Throws:
CertificateStoreException

getNextSerialNumber

BigInteger getNextSerialNumber()
                               throws CertificateStoreException
This method returns the 'highest certificate serial number plus ONE' and increments the highest serial number in the store.

Throws:
CertificateStoreException

containsCertificate

boolean containsCertificate(BigInteger sNo)
This method checks if a certificate with a given serial number exists in the store.

Parameters:
sNo - Serial number of the certificate to be checked

storeCACertificate

boolean storeCACertificate(Certificate cert)
                           throws CertificateStoreException
This method stores the CA's certificate in the store.

Parameters:
cert - CA's certificate
Throws:
CertificateStoreException

getCACertificate

Certificate getCACertificate()
                             throws CertificateStoreException
This method returns the CA's certificate stored in the store.

Throws:
CertificateStoreException

setCertificateChallenge

boolean setCertificateChallenge(BigInteger sNo,
                                String challenge)
                                throws CertificateStoreException
This method stores the challenge phrase against the specified certificate serial number

Parameters:
sNo - Serial number of the certificate
challenge - Challenge phrase
Throws:
CertificateStoreException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.