Class FileBasedCertificateQuarantine
java.lang.Object
org.eclipse.milo.opcua.stack.core.security.FileBasedCertificateQuarantine
- All Implemented Interfaces:
CertificateQuarantine
-
Constructor Summary
ConstructorsConstructorDescriptionFileBasedCertificateQuarantine(File rejectedDir) FileBasedCertificateQuarantine(File rejectedDir, int maxRejectedCertificates) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRejectedCertificate(X509Certificate certificate) Add a Certificate to the list of rejected Certificates.Create aFileBasedCertificateQuarantineindir.Create aFileBasedCertificateQuarantineindir.Get the list of rejected Certificates.voidremoveRejectedCertificate(X509Certificate certificate) Remove a Certificate from the list of rejected Certificates.
-
Constructor Details
-
FileBasedCertificateQuarantine
-
FileBasedCertificateQuarantine
-
-
Method Details
-
getRejectedCertificates
Description copied from interface:CertificateQuarantineGet the list of rejected Certificates.- Specified by:
getRejectedCertificatesin interfaceCertificateQuarantine- Returns:
- the list of rejected
X509Certificates.
-
addRejectedCertificate
Description copied from interface:CertificateQuarantineAdd a Certificate to the list of rejected Certificates.- Specified by:
addRejectedCertificatein interfaceCertificateQuarantine- Parameters:
certificate- theX509Certificateto add.
-
removeRejectedCertificate
Description copied from interface:CertificateQuarantineRemove a Certificate from the list of rejected Certificates.- Specified by:
removeRejectedCertificatein interfaceCertificateQuarantine- Parameters:
certificate- theX509Certificateto remove.
-
create
Create aFileBasedCertificateQuarantineindir. If the directory does not exist an attempt will be made to create it.- Parameters:
dir- the directory to use for the quarantine.- Returns:
- a new
FileBasedCertificateQuarantineinstance. - Throws:
IOException- if the directory does not exist and cannot be created.
-
create
Create aFileBasedCertificateQuarantineindir. If the directory does not exist an attempt will be made to create it.- Parameters:
dir- the directory to use for the quarantine.- Returns:
- a new
FileBasedCertificateQuarantineinstance. - Throws:
IOException- if the directory does not exist and cannot be created.
-