|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.security.ca.FileCertificateStore
public class FileCertificateStore
A certificate store implementation using disk files.
| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
FileCertificateStore(ServerInfo serverInfo,
URI directoryPath,
Kernel kernel,
AbstractName abstractName)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
containsCertificate(BigInteger sNo)
This method checks if a certificate with a given serial number exists in the store. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
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) |
static GBeanInfo |
getGBeanInfo()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public FileCertificateStore(ServerInfo serverInfo,
URI directoryPath,
Kernel kernel,
AbstractName abstractName)
storeDir - directory for the certificate store| Method Detail |
|---|
public void storeCertificate(Certificate cert)
throws CertificateStoreException
storeCertificate in interface CertificateStorecert - Certificate to be stored
CertificateStoreException
public Certificate getCertificate(BigInteger sNo)
throws CertificateStoreException
getCertificate in interface CertificateStoresNo - Serial Number of the certificate to be retrieved.
CertificateStoreException
public String getCertificateBase64Text(BigInteger sNo)
throws CertificateStoreException
getCertificateBase64Text in interface CertificateStoresNo - Serial Number of the certificate to be retrieved.
CertificateStoreException
public BigInteger getHighestSerialNumber()
throws CertificateStoreException
getHighestSerialNumber in interface CertificateStoreCertificateStoreException
public BigInteger getNextSerialNumber()
throws CertificateStoreException
getNextSerialNumber in interface CertificateStoreCertificateStoreExceptionpublic boolean containsCertificate(BigInteger sNo)
containsCertificate in interface CertificateStoresNo - Serial number of the certificate to be checked
public boolean storeCACertificate(Certificate cert)
throws CertificateStoreException
storeCACertificate in interface CertificateStorecert - CA's certificate
CertificateStoreException
public Certificate getCACertificate()
throws CertificateStoreException
getCACertificate in interface CertificateStoreCertificateStoreException
public boolean setCertificateChallenge(BigInteger sNo,
String challenge)
setCertificateChallenge in interface CertificateStoresNo - Serial number of the certificatechallenge - Challenge phrasepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecycle
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||