Class CertificateValidator.InsecureCertificateValidator

java.lang.Object
org.eclipse.milo.opcua.stack.core.security.CertificateValidator.InsecureCertificateValidator
All Implemented Interfaces:
CertificateValidator
Enclosing interface:
CertificateValidator

public static class CertificateValidator.InsecureCertificateValidator extends Object implements CertificateValidator
  • Constructor Details

    • InsecureCertificateValidator

      public InsecureCertificateValidator()
  • Method Details

    • validateCertificateChain

      public void validateCertificateChain(List<X509Certificate> certificateChain, String applicationUri, String[] validHostnames)
      Description copied from interface: CertificateValidator
      Check that trust can be established using the provided certificate chain and then validate every certificate in the chain.

      The chain must begin with the end-entity certificate at index 0 followed by the remaining certificates in the chain, if any, in the correct order.

      Specified by:
      validateCertificateChain in interface CertificateValidator
      Parameters:
      certificateChain - the certificate chain to validate.
      applicationUri - the applicationUri of the remote endpoint. Ignored if null.
      validHostnames - the valid hostnames for the remote endpoint. Ignored if null.