Enum CertificateChainValidation.Result
java.lang.Object
java.lang.Enum<CertificateChainValidation.Result>
no.digipost.signature.client.security.CertificateChainValidation.Result
- All Implemented Interfaces:
Serializable,Comparable<CertificateChainValidation.Result>,java.lang.constant.Constable
- Enclosing interface:
CertificateChainValidation
public static enum CertificateChainValidation.Result
extends Enum<CertificateChainValidation.Result>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the certificate chain is trusted by this particular validation, but is subject to further validation by theSSLContext's configured trust manager.The certificate is determined to be trusted, and validation by theSSLContext's trust manager should be skipped.The certificate chain has been determined to be not trusted. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static CertificateChainValidation.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRUSTED
Indicates that the certificate chain is trusted by this particular validation, but is subject to further validation by theSSLContext's configured trust manager. This should be considered as the default result from a successful validation. -
TRUSTED_AND_SKIP_FURTHER_VALIDATION
The certificate is determined to be trusted, and validation by theSSLContext's trust manager should be skipped. This result is not appropriate for any integration with Posten signering, as it will effectively skip validating the certificate to be issued by the trusted CA hierarchy. -
UNTRUSTED
The certificate chain has been determined to be not trusted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-