Module io.helidon.common.tls
Package io.helidon.common.tls
Class RevocationConfig.BuilderBase.RevocationConfigImpl
java.lang.Object
io.helidon.common.tls.RevocationConfig.BuilderBase.RevocationConfigImpl
- All Implemented Interfaces:
Prototype.Api,RevocationConfig
- Enclosing class:
RevocationConfig.BuilderBase<BUILDER extends RevocationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends RevocationConfig>
protected static class RevocationConfig.BuilderBase.RevocationConfigImpl
extends Object
implements RevocationConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.tls.RevocationConfig
RevocationConfig.Builder, RevocationConfig.BuilderBase<BUILDER extends RevocationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends RevocationConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRevocationConfigImpl(RevocationConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanOnly check the revocation status of end-entity certificates.booleanenabled()Flag indicating whether this revocation config is enabled.booleanbooleanEnable fallback to the less preferred checking option.inthashCode()The URI that identifies the location of the OCSP responder.booleanPrefer CRL over OCSP.booleanAllow revocation check to succeed if the revocation status cannot be determined for one of the following reasons: The CRL or OCSP response cannot be obtained because of a network error.toString()
-
Constructor Details
-
RevocationConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:RevocationConfigFlag indicating whether this revocation config is enabled.- Specified by:
enabledin interfaceRevocationConfig- Returns:
- enabled flag
-
preferCrlOverOcsp
public boolean preferCrlOverOcsp()Description copied from interface:RevocationConfigPrefer CRL over OCSP. Default value isfalse. OCSP is preferred over the CRL by default.- Specified by:
preferCrlOverOcspin interfaceRevocationConfig- Returns:
- whether to prefer CRL over OCSP
-
checkOnlyEndEntity
public boolean checkOnlyEndEntity()Description copied from interface:RevocationConfigOnly check the revocation status of end-entity certificates. Default value isfalse.- Specified by:
checkOnlyEndEntityin interfaceRevocationConfig- Returns:
- whether to check only end-entity certificates
-
fallbackEnabled
public boolean fallbackEnabled()Description copied from interface:RevocationConfigEnable fallback to the less preferred checking option.
If the primary method for revocation checking fails to verify the revocation status of a certificate (such as using a CRL or OCSP), the checker will attempt alternative methods. This option ensures whether revocation checking is performed strictly according to the specified method, or should fallback to the one less preferred. OCSP is preferred over the CRL by default.- Specified by:
fallbackEnabledin interfaceRevocationConfig- Returns:
- whether to allow fallback to the less preferred checking option
-
softFailEnabled
public boolean softFailEnabled()Description copied from interface:RevocationConfigAllow revocation check to succeed if the revocation status cannot be determined for one of the following reasons:- The CRL or OCSP response cannot be obtained because of a network error.
- The OCSP responder returns one of the following errors specified in section 2.3 of RFC 2560: internalError or tryLater.
- Specified by:
softFailEnabledin interfaceRevocationConfig- Returns:
- whether soft fail is enabled
-
ocspResponderUri
Description copied from interface:RevocationConfigThe URI that identifies the location of the OCSP responder. This overrides theocsp.responderURLsecurity property and any responder specified in a certificate's Authority Information Access Extension, as defined in RFC 5280.- Specified by:
ocspResponderUriin interfaceRevocationConfig- Returns:
- OCSP responder URI
-
toString
-
equals
-
hashCode
public int hashCode()
-