public enum ValidationCheck extends Enum<ValidationCheck>
See OPC UA (v1.03) Part 4, Section 6.1.3.
| Enum Constant and Description |
|---|
APPLICATION_URI
Check that a remote application's end-entity certificate has a SubjectAlternativeName URI
that matches the application URI in its ApplicationDescription.
|
EXTENDED_KEY_USAGE_END_ENTITY
The ExtendedKeyUsage extension must be present and checked for end-entity certificates.
|
HOSTNAME
Check that the end-entity certificate contains a particular hostname or IP address in its SANs.
|
KEY_USAGE_END_ENTITY
The KeyUsage 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.
|
VALIDITY
Certificate validity and expiration is checked.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableSet<ValidationCheck> |
ALL_OPTIONAL_CHECKS
A set the includes all
ValidationChecks. |
static com.google.common.collect.ImmutableSet<ValidationCheck> |
NO_OPTIONAL_CHECKS
A set that includes none of the optional
ValidationChecks. |
| Modifier and Type | Method and Description |
|---|---|
static ValidationCheck |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationCheck HOSTNAME
This check is only done in clients, against the server they are connecting to.
public static final ValidationCheck VALIDITY
public static final ValidationCheck KEY_USAGE_END_ENTITY
public static final ValidationCheck EXTENDED_KEY_USAGE_END_ENTITY
public static final ValidationCheck REVOCATION
public static final ValidationCheck REVOCATION_LISTS
public static final ValidationCheck APPLICATION_URI
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.
public static final com.google.common.collect.ImmutableSet<ValidationCheck> NO_OPTIONAL_CHECKS
ValidationChecks.
This set *does* still include APPLICATION_URI, which is technically not optional.
public static final com.google.common.collect.ImmutableSet<ValidationCheck> ALL_OPTIONAL_CHECKS
ValidationChecks.public static ValidationCheck[] values()
for (ValidationCheck c : ValidationCheck.values()) System.out.println(c);
public static ValidationCheck valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025. All rights reserved.