Class DefaultClientCertificateValidator

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

public class DefaultClientCertificateValidator extends Object implements CertificateValidator
  • Constructor Details

  • Method Details

    • validateCertificateChain

      public void validateCertificateChain(List<X509Certificate> certificateChain, String applicationUri, String[] validHostNames) throws UaException
      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.
      Throws:
      UaException - if certificateChain is not trusted or validation fails.