|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.security.ca.FileCertificateRequestStore
public class FileCertificateRequestStore
A certificate request store implementation using disk files.
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
---|---|
FileCertificateRequestStore(ServerInfo serverInfo,
URI directoryPath,
Kernel kernel,
AbstractName abstractName)
Constructor |
Method Summary | |
---|---|
boolean |
deleteRequest(String id)
This method deletes a certificate request with the specified id. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
String[] |
getAllRequestIds()
This method returns the ids of all certificate requests in the store. |
static GBeanInfo |
getGBeanInfo()
|
String |
getRequest(String id)
This method returns the certificate request text corresponding to a specified id. |
BigInteger |
getSerialNumberForRequest(String id)
This method returns the Serial number of the certificate issued against the certificate request specified by the given id. |
String[] |
getVerificatonDueRequestIds()
This method returns the ids of all certificate requests with verification due. |
String[] |
getVerifiedRequestIds()
This method returns the ids of all certificate requests that are verified. |
void |
removeRequestStatus(String id,
BigInteger sNo)
This method removes the certificate request id from the status list. |
boolean |
setRequestFulfilled(String id,
BigInteger sNo)
This method sets the status of a certificate request as fulfilled. |
boolean |
setRequestVerified(String id)
This method sets the status of the specifed certificate request as verified. |
String |
storeRequest(String id,
String csr)
This method stores the given certificate request under the given id. |
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 FileCertificateRequestStore(ServerInfo serverInfo, URI directoryPath, Kernel kernel, AbstractName abstractName)
Method Detail |
---|
public boolean deleteRequest(String id)
deleteRequest
in interface CertificateRequestStore
id
- Id of the certificate request to be deleted.
public String[] getAllRequestIds()
getAllRequestIds
in interface CertificateRequestStore
public String[] getVerificatonDueRequestIds()
getVerificatonDueRequestIds
in interface CertificateRequestStore
public String[] getVerifiedRequestIds()
getVerifiedRequestIds
in interface CertificateRequestStore
public boolean setRequestVerified(String id)
setRequestVerified
in interface CertificateRequestStore
id
- Id of the certificate request
public boolean setRequestFulfilled(String id, BigInteger sNo)
setRequestFulfilled
in interface CertificateRequestStore
id
- Id of the certificate requestsNo
- Serial number of the certificate issued against the certificate request.
public String getRequest(String id)
getRequest
in interface CertificateRequestStore
id
- Id of the certificate request.public String storeRequest(String id, String csr)
storeRequest
in interface CertificateRequestStore
id
- Id under which the certificate request is to be storedcsrText
- Certificate Request text
public BigInteger getSerialNumberForRequest(String id)
getSerialNumberForRequest
in interface CertificateRequestStore
id
- Id of the certificate request
public void removeRequestStatus(String id, BigInteger sNo)
removeRequestStatus
in interface CertificateRequestStore
id
- Id of the certificate request to be removed.sNo
- Serial number of certificate issued against the certificate request whose Id is to be removed.public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
Exception
- 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 |