Class CertificateExchangeImpl
java.lang.Object
org.graylog2.cluster.certificates.CertificateExchangeImpl
- All Implemented Interfaces:
CertificateExchange
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCertificateExchangeImpl(MongoConnection mongoConnection, EncryptedValueService encryptionService) -
Method Summary
Modifier and TypeMethodDescriptionparseCertificateChain(String certificate) voidpollCertificate(String nodeId, Consumer<CertificateChain> chainConsumer) If the consumer fails to consume existing certificate, the certificate won't be removed and the attempt will be repeated during the next poll call.voidvoidsignPendingCertificateRequests(Function<CertificateSigningRequest, CertificateChain> signingFunction) Take every pending CSR and transform it to a valid certificate chain by using the signing function
-
Field Details
-
FIELD_NODE_ID
- See Also:
-
FIELD_ENTRY_TYPE
- See Also:
-
FIELD_ENCRYPTED_VALUE
- See Also:
-
-
Constructor Details
-
CertificateExchangeImpl
@Inject public CertificateExchangeImpl(MongoConnection mongoConnection, EncryptedValueService encryptionService)
-
-
Method Details
-
requestCertificate
- Specified by:
requestCertificatein interfaceCertificateExchange- Throws:
IOException
-
signPendingCertificateRequests
public void signPendingCertificateRequests(Function<CertificateSigningRequest, CertificateChain> signingFunction) throws IOExceptionDescription copied from interface:CertificateExchangeTake every pending CSR and transform it to a valid certificate chain by using the signing function- Specified by:
signPendingCertificateRequestsin interfaceCertificateExchange- Throws:
IOException
-
pollCertificate
Description copied from interface:CertificateExchangeIf the consumer fails to consume existing certificate, the certificate won't be removed and the attempt will be repeated during the next poll call.- Specified by:
pollCertificatein interfaceCertificateExchange
-
parseCertificateChain
-