Enum Class ValidationCheck
- All Implemented Interfaces:
Serializable,Comparable<ValidationCheck>,Constable
Validation checks that are allowed to be suppressed (i.e. they are optional) according to the
spec.
See OPC UA (v1.03) Part 4, Section 6.1.3.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCheck that a remote application's end-entity certificate has a SubjectAlternativeName URI that matches the application URI in its ApplicationDescription.The ExtendedKeyUsage extension must be present and checked for end-entity certificates.Check that the end-entity certificate contains a particular hostname or IP address in its SANs.The KeyUsage extension must be present and checked for end-entity certificates.Revocation checking must happen.CRLs for every non-end-entity CA must be found.Certificate validity and expiration is checked. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<ValidationCheck>A set the includes allValidationChecks.static final Set<ValidationCheck>A set that includes none of the optionalValidationChecks. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationCheckReturns the enum constant of this class with the specified name.static ValidationCheck[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOSTNAME
Check that the end-entity certificate contains a particular hostname or IP address in its SANs.This check is only done in clients, against the server they are connecting to.
-
VALIDITY
Certificate validity and expiration is checked. -
KEY_USAGE_END_ENTITY
The KeyUsage extension must be present and checked for end-entity certificates. -
EXTENDED_KEY_USAGE_END_ENTITY
The ExtendedKeyUsage extension must be present and checked for end-entity certificates. -
REVOCATION
Revocation checking must happen. -
REVOCATION_LISTS
CRLs for every non-end-entity CA must be found. -
APPLICATION_URI
Check that a remote application's end-entity certificate has a SubjectAlternativeName URI that matches the application URI in its ApplicationDescription.This check is not technically optional or suppressible according to the spec, but because Java's certificate parsing routine turns invalid URIs into a null/empty String this check fails more often than it should, since many applications will use whitespace in their URI without properly URL-encoding it.
-
-
Field Details
-
NO_OPTIONAL_CHECKS
A set that includes none of the optionalValidationChecks.This set *does* still include
APPLICATION_URI, which is technically not optional. -
ALL_OPTIONAL_CHECKS
A set the includes allValidationChecks.
-
-
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
-