|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CertificationAuthority
Management interface for dealing with a specific CertificationAuthority.
| Method Summary | |
|---|---|
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. |
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. |
| Method Detail |
|---|
boolean isLocked()
void lock()
void unlock(char[] password)
throws CertificationAuthorityException
password - Password to unlock the CA.
CertificationAuthorityException
X500Principal getName()
throws CertificationAuthorityException
Exception - if CA is locked.
CertificationAuthorityException
Certificate getCertificate()
throws CertificationAuthorityException
Exception - if CA is locked.
CertificationAuthorityException
void issueOwnCertificate(BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
throws CertificationAuthorityException
sNo - Serial number for self-signed certificatevalidFromDate - Certificate validity period start datevalidToDate - Certificate validity period end datealgorithm - Signature algorithm for self-signed certificate
CertificationAuthorityException
Certificate issueCertificate(X500Principal subject,
PublicKey publicKey,
BigInteger sNo,
Date validFromDate,
Date validToDate,
String algorithm)
throws CertificationAuthorityException
subject - Subject namepublicKey - 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
CertificationAuthorityException
BigInteger getHighestSerialNumber()
throws CertificationAuthorityException
CertificationAuthorityException
boolean isCertificateIssued(BigInteger sNo)
throws CertificationAuthorityException
sNo - The serial number of the the certificate to be looked for
CertificationAuthorityException
BigInteger getNextSerialNumber()
throws CertificationAuthorityException
CertificationAuthorityException
Certificate getCertificate(BigInteger sNo)
throws CertificationAuthorityException
sNo - The serial number of the certificate to be retrieved
CertificationAuthorityException
String getCertificateBase64Text(BigInteger sNo)
throws CertificationAuthorityException
sNo - The serial number of the certificate to be retrieved
CertificationAuthorityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||