com.prosysopc.ua
Enum PkiFileBasedCertificateValidator.CertificateCheck

java.lang.Object
  extended by java.lang.Enum<PkiFileBasedCertificateValidator.CertificateCheck>
      extended by com.prosysopc.ua.PkiFileBasedCertificateValidator.CertificateCheck
All Implemented Interfaces:
Serializable, Comparable<PkiFileBasedCertificateValidator.CertificateCheck>
Enclosing class:
PkiFileBasedCertificateValidator

public static enum PkiFileBasedCertificateValidator.CertificateCheck
extends Enum<PkiFileBasedCertificateValidator.CertificateCheck>

Certificate checks that the Validator performs. The values are used to define which checks passed in the validator.

See Also:
CertificateValidationListener

Enum Constant Summary
SelfSigned
          is the certificate signed by the certificate itself (this can be OK)
Signature
          is the certificate signed by a trusted signer (or self)
Trusted
          is the certificate already defined as trusted, i.e. it is found from the TrustedDir or added to the validator using addTrustedCertificate
Uri
          does the certificate contain the applicationUri, equal to the one in the ApplicationDescription.
UriValid
          validity of the URI
Validity
          is the certificate time valid
 
Field Summary
static EnumSet<PkiFileBasedCertificateValidator.CertificateCheck> COMPULSORY
          All tests that must pass, to accept the certificate.
 
Method Summary
static PkiFileBasedCertificateValidator.CertificateCheck valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PkiFileBasedCertificateValidator.CertificateCheck[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SelfSigned

public static final PkiFileBasedCertificateValidator.CertificateCheck SelfSigned
is the certificate signed by the certificate itself (this can be OK)


Signature

public static final PkiFileBasedCertificateValidator.CertificateCheck Signature
is the certificate signed by a trusted signer (or self)


Trusted

public static final PkiFileBasedCertificateValidator.CertificateCheck Trusted
is the certificate already defined as trusted, i.e. it is found from the TrustedDir or added to the validator using addTrustedCertificate


Uri

public static final PkiFileBasedCertificateValidator.CertificateCheck Uri
does the certificate contain the applicationUri, equal to the one in the ApplicationDescription.


UriValid

public static final PkiFileBasedCertificateValidator.CertificateCheck UriValid
validity of the URI


Validity

public static final PkiFileBasedCertificateValidator.CertificateCheck Validity
is the certificate time valid

Field Detail

COMPULSORY

public static EnumSet<PkiFileBasedCertificateValidator.CertificateCheck> COMPULSORY
All tests that must pass, to accept the certificate. Defined as including EnumSet.of(Trusted, Validity, Signature, Uri)

Method Detail

values

public static PkiFileBasedCertificateValidator.CertificateCheck[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PkiFileBasedCertificateValidator.CertificateCheck c : PkiFileBasedCertificateValidator.CertificateCheck.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PkiFileBasedCertificateValidator.CertificateCheck valueOf(String name)
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 name
NullPointerException - if the argument is null


Copyright © 2018. All rights reserved.