Interface CertificateRegistry
- All Known Implementing Classes:
CertificateContainer
public interface CertificateRegistry
Registry to manage
RequestedCertificates (request and rotation).- Since:
- 4.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(RequestedCertificate certificate) Register aRequestedCertificatewith the registry.voidregister(RequestedCertificate certificate, CertificateListener listener) Register aRequestedCertificatewith the registry with an associatedCertificateListener.booleanunregister(RequestedCertificate certificate) Unregister theRequestedCertificatefrom the registry.
-
Method Details
-
register
Register aRequestedCertificatewith the registry.Subsequent registrations of the same
RequestedCertificateare considered as a single registration and the secret will be managed only once.- Parameters:
certificate- the certificate to be managed.
-
register
Register aRequestedCertificatewith the registry with an associatedCertificateListener.Subsequent registrations of the same
RequestedCertificateare considered as a single registration and the secret will be managed only once. A requested secret that has been already been registered and activated by the container will not lead to emission of a newSecretLeaseCreatedEventwith the previous secrets body but rather only to future events such as rotations or renewals.- Parameters:
certificate- the requested certificate to be managed.listener- listener to associate with the requested certificate. The listener will be notified only with events concerning the requested certificate.
-
unregister
Unregister theRequestedCertificatefrom the registry. Removing the certificate stops rotations, and it removes listener registrations that wereassociated with the certificate registration.- Parameters:
certificate- the certificate to be deregistered.- Returns:
- true if the certificate was registered before and has been removed; false otherwise.
-