- Alle implementierten Schnittstellen:
Serializable
A certificate is immutable once it is issued. For renewal, a new certificate must be ordered.
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddownload()Downloads the certificate chain.findCertificate(String issuer) Finds aCertificatethat was issued by the given issuer name.Returns alternate certificate chains, if available.Returns URLs to alternate certificate chains.Veraltet.Is not needed in the ACME context anymore and will thus be removed in a later version.Returns the created certificate.Returns the created certificate and issuer chain.Reads the RenewalInfo for this certificate.Returns the location of the certificate's RenewalInfo.booleanReturnstrueif the CA provides renewal information.booleanisIssuedBy(String issuer) Checks if this certificate was issued by the given issuer name.voidrevoke()Revokes this certificate.static voidrevoke(Login login, X509Certificate cert, RevocationReason reason) Revoke a certificate.voidrevoke(RevocationReason reason) Revokes this certificate.static voidrevoke(Session session, KeyPair domainKeyPair, X509Certificate cert, RevocationReason reason) Revoke a certificate.voidwriteCertificate(Writer out) Writes the certificate to the given writer.Von Klasse geerbte Methoden org.shredzone.acme4j.AcmeResource
finalize, getLocation, getLogin, getSession, rebind
-
Konstruktordetails
-
Certificate
-
-
Methodendetails
-
download
Downloads the certificate chain.The certificate is downloaded lazily by the other methods. Usually there is no need to invoke this method, unless the download is to be enforced. If the certificate has been downloaded already, nothing will happen.
- Löst aus:
AcmeException- if the certificate could not be downloaded
-
getCertificate
Returns the created certificate.- Gibt zurück:
- The created end-entity
X509Certificatewithout issuer chain.
-
getCertificateChain
Returns the created certificate and issuer chain.- Gibt zurück:
- The created end-entity
X509Certificateand issuer chain. The first certificate is always the end-entity certificate, followed by the intermediate certificates required to build a path to a trusted root.
-
getAlternates
Returns URLs to alternate certificate chains.- Gibt zurück:
- Alternate certificate chains, or empty if there are none.
-
getAlternateCertificates
Returns alternate certificate chains, if available.- Gibt zurück:
- Alternate certificate chains, or empty if there are none.
- Seit:
- 2.11
-
isIssuedBy
Checks if this certificate was issued by the given issuer name.- Parameter:
issuer- Issuer name to check against, case-sensitive- Gibt zurück:
trueif this issuer name was found in the certificate chain as issuer,falseotherwise.- Seit:
- 3.0.0
-
findCertificate
Finds aCertificatethat was issued by the given issuer name.- Parameter:
issuer- Issuer name to check against, case-sensitive- Gibt zurück:
- Certificate that was issued by that issuer, or
emptyif there was none. The returnedCertificatemay be this instance, or one of thegetAlternateCertificates()instances. If multiple certificates are issued by that issuer, the first one that was found is returned. - Seit:
- 3.0.0
-
writeCertificate
Writes the certificate to the given writer. It is written in PEM format, with the end-entity cert coming first, followed by the intermediate certificates.- Parameter:
out-Writerto write to. The writer is not closed after use.- Löst aus:
IOException
-
getCertID
Veraltet.Is not needed in the ACME context anymore and will thus be removed in a later version.Returns this certificate's CertID according to RFC 6960.This method requires the
BouncyCastleProvidersecurity provider.- Seit:
- 3.0.0
- Siehe auch:
-
getRenewalInfoLocation
Returns the location of the certificate's RenewalInfo. Empty if the CA does not provide this information.- Seit:
- 3.0.0
- Draft:
- This method is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
-
hasRenewalInfo
Returnstrueif the CA provides renewal information.- Seit:
- 3.0.0
- Draft:
- This method is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
-
getRenewalInfo
Reads the RenewalInfo for this certificate.- Gibt zurück:
- The
RenewalInfoof this certificate. - Löst aus:
AcmeNotSupportedException- if the CA does not support renewal information.- Seit:
- 3.0.0
- Draft:
- This method is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
-
revoke
Revokes this certificate.- Löst aus:
AcmeException
-
revoke
Revokes this certificate.- Parameter:
reason-RevocationReasonstating the reason of the revocation that is used when generating OCSP responses and CRLs.nullto give no reason.- Löst aus:
AcmeException- Siehe auch:
-
revoke
public static void revoke(Login login, X509Certificate cert, @Nullable RevocationReason reason) throws AcmeException Revoke a certificate.Use this method if the certificate's location is unknown, so you cannot regenerate a
Certificateinstance. This method requires aLoginto your account and the issued certificate.- Parameter:
login-Loginto the accountcert- TheX509Certificateto be revokedreason-RevocationReasonstating the reason of the revocation that is used when generating OCSP responses and CRLs.nullto give no reason.- Löst aus:
AcmeException- Seit:
- 2.6
- Siehe auch:
-
revoke
public static void revoke(Session session, KeyPair domainKeyPair, X509Certificate cert, @Nullable RevocationReason reason) throws AcmeException Revoke a certificate.Use this method if the key pair of your account was lost (so you are unable to login into your account), but you still have the key pair of the affected domain and the issued certificate.
- Parameter:
session-Sessionconnected to the ACME serverdomainKeyPair- Key pair the CSR was signed withcert- TheX509Certificateto be revokedreason-RevocationReasonstating the reason of the revocation that is used when generating OCSP responses and CRLs.nullto give no reason.- Löst aus:
AcmeException- Siehe auch:
-