Package google.registry.flows.certs
Enum Class CertificateChecker.CertificateViolation
java.lang.Object
java.lang.Enum<CertificateChecker.CertificateViolation>
google.registry.flows.certs.CertificateChecker.CertificateViolation
- All Implemented Interfaces:
Serializable
,Comparable<CertificateChecker.CertificateViolation>
,Constable
- Enclosing class:
CertificateChecker
public static enum CertificateChecker.CertificateViolation
extends Enum<CertificateChecker.CertificateViolation>
The type of violation a certificate has based on the certificate requirements
(go/registry-proxy-security).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayMessage
(CertificateChecker certificateChecker) Gets a suitable end-user-facing display message for this particular certificate violation.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPIRED
-
NOT_YET_VALID
-
VALIDITY_LENGTH_TOO_LONG
-
RSA_KEY_LENGTH_TOO_SHORT
-
ALGORITHM_CONSTRAINED
-
INVALID_ECDSA_CURVE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayMessage
Gets a suitable end-user-facing display message for this particular certificate violation.Note that the
CertificateChecker
instance must be passed in because it contains configuration values (e.g., minimum RSA key length) that go into the error message text.
-