org.opcfoundation.ua.transport.security
Class AllowAllCertificatesValidator

java.lang.Object
  extended by org.opcfoundation.ua.transport.security.AllowAllCertificatesValidator
All Implemented Interfaces:
CertificateValidator

public class AllowAllCertificatesValidator
extends Object
implements CertificateValidator

A CertificateValidator that allows all certificates.


Field Summary
 
Fields inherited from interface org.opcfoundation.ua.transport.security.CertificateValidator
ALLOW_ALL
 
Constructor Summary
AllowAllCertificatesValidator()
           
 
Method Summary
 StatusCode validateCertificate(ApplicationDescription applicationDescription, Cert cert)
          Validate the certificate against the ApplicationDescription.
 StatusCode validateCertificate(Cert c)
          Validate (peer's) certificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAllCertificatesValidator

public AllowAllCertificatesValidator()
Method Detail

validateCertificate

public StatusCode validateCertificate(Cert c)
Validate (peer's) certificate

Specified by:
validateCertificate in interface CertificateValidator
Parameters:
c - the certificate
Returns:
Bad statuscode to reject the certificate or Good to accept.

validateCertificate

public StatusCode validateCertificate(ApplicationDescription applicationDescription,
                                      Cert cert)
Description copied from interface: CertificateValidator
Validate the certificate against the ApplicationDescription.

Specified by:
validateCertificate in interface CertificateValidator
Parameters:
applicationDescription - the application description
cert - the certificate
Returns:
Bad statuscode to reject the certificate or Good to accept.


Copyright © 2018. All rights reserved.