org.opcfoundation.ua.cert
Interface DefaultCertificateValidatorListener


public interface DefaultCertificateValidatorListener

An event handler interface for reacting to certificate validation handling results.


Method Summary
 ValidationResult onValidate(Cert certificate, ApplicationDescription applicationDescription, EnumSet<CertificateCheck> passedChecks)
          Handle certificate validation.
 

Method Detail

onValidate

ValidationResult onValidate(Cert certificate,
                            ApplicationDescription applicationDescription,
                            EnumSet<CertificateCheck> passedChecks)
Handle certificate validation. You can use the event to define your custom handler to decide whether to trust or reject the certificate - permanently or just this time.

The method is called once the actual validator has already checked the certificate and provides the results of the checks in the parameters. If isTrusted, isSignVerified, isValid are all false, you should normally accept the certificate.

Parameters:
certificate - the certificate that is being validated
passedChecks - the certification checks that failed
Returns:
validation result: accept or reject; once or permanently?


Copyright © 2018. All rights reserved.