|
||||||||||
| 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 org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
FileCertificateStore(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
URI directoryPath,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.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()
|
void |
doStart()
|
void |
doStop()
|
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 org.apache.geronimo.gbean.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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public FileCertificateStore(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
URI directoryPath,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.AbstractName abstractName)
storeDir - directory for the certificate store| Method Detail |
|---|
public void storeCertificate(Certificate cert)
throws org.apache.geronimo.management.geronimo.CertificateStoreException
storeCertificate in interface org.apache.geronimo.management.geronimo.CertificateStorecert - Certificate to be stored
org.apache.geronimo.management.geronimo.CertificateStoreException
public Certificate getCertificate(BigInteger sNo)
throws org.apache.geronimo.management.geronimo.CertificateStoreException
getCertificate in interface org.apache.geronimo.management.geronimo.CertificateStoresNo - Serial Number of the certificate to be retrieved.
org.apache.geronimo.management.geronimo.CertificateStoreException
public String getCertificateBase64Text(BigInteger sNo)
throws org.apache.geronimo.management.geronimo.CertificateStoreException
getCertificateBase64Text in interface org.apache.geronimo.management.geronimo.CertificateStoresNo - Serial Number of the certificate to be retrieved.
org.apache.geronimo.management.geronimo.CertificateStoreException
public BigInteger getHighestSerialNumber()
throws org.apache.geronimo.management.geronimo.CertificateStoreException
getHighestSerialNumber in interface org.apache.geronimo.management.geronimo.CertificateStoreorg.apache.geronimo.management.geronimo.CertificateStoreException
public BigInteger getNextSerialNumber()
throws org.apache.geronimo.management.geronimo.CertificateStoreException
getNextSerialNumber in interface org.apache.geronimo.management.geronimo.CertificateStoreorg.apache.geronimo.management.geronimo.CertificateStoreExceptionpublic boolean containsCertificate(BigInteger sNo)
containsCertificate in interface org.apache.geronimo.management.geronimo.CertificateStoresNo - Serial number of the certificate to be checked
public boolean storeCACertificate(Certificate cert)
throws org.apache.geronimo.management.geronimo.CertificateStoreException
storeCACertificate in interface org.apache.geronimo.management.geronimo.CertificateStorecert - CA's certificate
org.apache.geronimo.management.geronimo.CertificateStoreException
public Certificate getCACertificate()
throws org.apache.geronimo.management.geronimo.CertificateStoreException
getCACertificate in interface org.apache.geronimo.management.geronimo.CertificateStoreorg.apache.geronimo.management.geronimo.CertificateStoreException
public boolean setCertificateChallenge(BigInteger sNo,
String challenge)
setCertificateChallenge in interface org.apache.geronimo.management.geronimo.CertificateStoresNo - Serial number of the certificatechallenge - Challenge phrasepublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle
public void doStart()
throws Exception
doStart in interface org.apache.geronimo.gbean.GBeanLifecycleException
public void doStop()
throws Exception
doStop in interface org.apache.geronimo.gbean.GBeanLifecycleExceptionpublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||