Package no.digipost.security.cert
Class CertificateValidatorConfig
java.lang.Object
no.digipost.security.cert.CertificateValidatorConfig
Configuration of a
CertificateValidator
. Use MOST_STRICT
to acquire
a configuration instance, and optionally use it to customize into a new configuration.-
Field Summary
Modifier and TypeFieldDescriptionstatic final CertificateValidatorConfig
This is the most strict validator, and the only way to initially acquire an instance ofCertificateValidatorConfig
. -
Method Summary
Modifier and TypeMethodDescriptionallowOcspResults
(CertStatus... allowedOcspResults) boolean
allowsOcspResult
(CertStatus status) withOcspPolicy
(OcspPolicy ocspPolicy)
-
Field Details
-
MOST_STRICT
This is the most strict validator, and the only way to initially acquire an instance ofCertificateValidatorConfig
. If required, e.g. for test purposes, you may loosen the strictness by using methods aswithOcspPolicy(OcspPolicy)
orallowOcspResults(CertStatus...)
.
-
-
Method Details
-
allowsOcspResult
-
withOcspPolicy
-
allowOcspResults
-