Validates certificates.
More...
UnifiedAutomation.UaBase.CertificateValidator.CertificateValidator |
( |
ApplicationInstance |
application | ) |
|
X509CertificateValidator UnifiedAutomation.UaBase.CertificateValidator.GetChannelValidator |
( |
| ) |
|
Returns an object that can be used with WCF channel.
Returns the issuers for the certificate.
virtual void UnifiedAutomation.UaBase.CertificateValidator.InternalValidate |
( |
ICertificate[] |
certificates, |
|
|
bool |
mustValidateChain |
|
) |
| |
|
protectedvirtual |
Throws an exception if validation fails.
- Parameters
-
certificates | The certificates. |
mustValidateChain | if set to true the all certificates in the chain must be available and valid. |
- Exceptions
-
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate |
certificate | ) |
|
|
virtual |
Validates a certificate.
- Parameters
-
certificate | The certificate to validate. |
Each UA application may have a list of trusted certificates that is different from all other UA applications that may be running on the same machine. As a result, the certificate validator cannot rely completely on the Windows certificate store and user or machine specific CTLs (certificate trust lists). The validator constructs the trust chain for the certificate and follows the chain until it finds a certification that is in the application trust list. Non-fatal trust chain errors (i.e. certificate expired) are ignored if the certificate is in the application trust list. If no certificate in the chain is trusted then the validator will still accept the certification if there are no trust chain errors. The validator may be configured to ignore the application trust list and/or trust chain.
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate |
certificate, |
|
|
ICertificate[] |
chain, |
|
|
bool |
mustValidateChain |
|
) |
| |
|
virtual |
Validates the specified certificate.
- Parameters
-
certificate | The certificate. |
chain | The chain. |
mustValidateChain | if set to true then all certificates in the chain must be available and valid. |
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate[] |
certificates, |
|
|
bool |
mustValidateChain |
|
) |
| |
|
virtual |
Validates a certificate.
- Parameters
-
certificates | The certificate chain. Must start with the certificate to validate. |
mustValidateChain | if set to true then all certificates in the chain must be available and valid. |
Raised when a certificate validation error occurs.
The documentation for this class was generated from the following file:
- C:/work/uasdknet/src/UaBase/Security/CertificateValidator.cs