|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.security.ca.GeronimoCertificationAuthority
public class GeronimoCertificationAuthority
A Certification Authority implementation using KeystoreInstance to store CA's private key, CertificateStore to store issued certificates and CertificateRequestStore to store certificate requests
| Field Summary | |
|---|---|
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
GeronimoCertificationAuthority(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
org.apache.geronimo.management.geronimo.KeystoreInstance caKeystore,
org.apache.geronimo.management.geronimo.CertificateStore certStore,
org.apache.geronimo.management.geronimo.CertificateRequestStore certReqStore,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.AbstractName abstractName)
Constructor |
|
| Method Summary | |
|---|---|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
Certificate |
getCertificate()
This method returns CA's own certificate. |
Certificate |
getCertificate(BigInteger sNo)
This method retrieves a certificate with the specified serial number. |
String |
getCertificateBase64Text(BigInteger sNo)
This method retrieves a certificate with the specified serial number. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
BigInteger |
getHighestSerialNumber()
This method returns the highest serial number used by the CA. |
X500Principal |
getName()
This method returns CA's name. |
BigInteger |
getNextSerialNumber()
This method returns the next serial number that can be used to issue a certificate and increments the highest serial number. |
boolean |
isCertificateIssued(BigInteger sNo)
This method checks if a Certificate with a given serial number is already issued. |
boolean |
isLocked()
This method checks if the CA is locked. |
Certificate |
issueCertificate(X500Principal subject,
PublicKey publicKey,
BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
This method issues a certificate. |
void |
issueOwnCertificate(BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
This method makes the CA issue a self-signed certificate with given details. |
void |
lock()
This method locks the CA. |
void |
unlock(char[] password)
This method unlocks the CA. |
| 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 GeronimoCertificationAuthority(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
org.apache.geronimo.management.geronimo.KeystoreInstance caKeystore,
org.apache.geronimo.management.geronimo.CertificateStore certStore,
org.apache.geronimo.management.geronimo.CertificateRequestStore certReqStore,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.AbstractName abstractName)
instance - KeystoreInstance containing CA's private-key and certificatecertStore - CertificateStore for storing certificates issued by this CAcertReqStore - CeetificateRequestStore for storing certificates requests| Method Detail |
|---|
public boolean isLocked()
isLocked in interface org.apache.geronimo.management.geronimo.CertificationAuthoritypublic void lock()
lock in interface org.apache.geronimo.management.geronimo.CertificationAuthority
public void unlock(char[] password)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
unlock in interface org.apache.geronimo.management.geronimo.CertificationAuthoritypassword - Password to unlock the CA.
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public X500Principal getName()
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getName in interface org.apache.geronimo.management.geronimo.CertificationAuthorityException - if CA is locked.
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public Certificate getCertificate()
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getCertificate in interface org.apache.geronimo.management.geronimo.CertificationAuthorityException - if CA is locked.
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public void issueOwnCertificate(BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
issueOwnCertificate in interface org.apache.geronimo.management.geronimo.CertificationAuthoritysNo - Serial number for self-signed certificatevalidFromDate - Certificate validity period start datevalidToDate - Certificate validity period end datealgorithm - Signature algorithm for self-signed certificate
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public Certificate issueCertificate(X500Principal subject,
PublicKey publicKey,
BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
issueCertificate in interface org.apache.geronimo.management.geronimo.CertificationAuthoritysubject - Subject X500PrincipalpublicKey - Subject's public keysNo - Serial number for the certificate to be issuedvalidFromDate - Certificate validity period start datevalidToDate - Certificate validity period end datealgorithm - Signature algorithm for the certificate
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public BigInteger getHighestSerialNumber()
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getHighestSerialNumber in interface org.apache.geronimo.management.geronimo.CertificationAuthorityorg.apache.geronimo.management.geronimo.CertificationAuthorityException
public boolean isCertificateIssued(BigInteger sNo)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
isCertificateIssued in interface org.apache.geronimo.management.geronimo.CertificationAuthoritysNo - The serial number of the the certificate to be looked for
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public BigInteger getNextSerialNumber()
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getNextSerialNumber in interface org.apache.geronimo.management.geronimo.CertificationAuthorityorg.apache.geronimo.management.geronimo.CertificationAuthorityException
public Certificate getCertificate(BigInteger sNo)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getCertificate in interface org.apache.geronimo.management.geronimo.CertificationAuthoritysNo - The serial number of the certificate to be retrieved
org.apache.geronimo.management.geronimo.CertificationAuthorityException
public String getCertificateBase64Text(BigInteger sNo)
throws org.apache.geronimo.management.geronimo.CertificationAuthorityException
getCertificateBase64Text in interface org.apache.geronimo.management.geronimo.CertificationAuthoritysNo - The serial number of the certificate to be retrieved
org.apache.geronimo.management.geronimo.CertificationAuthorityExceptionpublic 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 | |||||||||