Validates certificates.
More...
Inherits UnifiedAutomation.UaBase.ICertificateValidator.
void UnifiedAutomation.UaBase.CertificateValidator.Accept |
( |
ICertificate |
certificate | ) |
|
|
inline |
void UnifiedAutomation.UaBase.CertificateValidator.ChangeApplicationCertificate |
( |
ICertificate |
certificate | ) |
|
|
inline |
Returns the issuers for the certificate.
Throws an exception if validation fails.
- Parameters
-
certificate | The certificate. |
certificateChain | The certificate chain. |
settings | The settings to use when checking the certificate. |
- Exceptions
-
void UnifiedAutomation.UaBase.CertificateValidator.RemoveAcceptance |
( |
ICertificate |
certificate | ) |
|
|
inline |
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate |
certificate | ) |
|
|
inlinevirtual |
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, |
|
|
string |
applicationUri, |
|
|
string |
endpointUrl |
|
) |
| |
|
inlinevirtual |
Validates the specified certificate.
- Parameters
-
certificate | The certificate. |
applicationUri | If not null the certificate must contain this URI. |
endpointUrl | If not null the certificate hostnames must match this URL. |
Implements UnifiedAutomation.UaBase.ICertificateValidator.
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate |
certificate, |
|
|
IList< ICertificate > |
chain, |
|
|
string |
applicationUri, |
|
|
string |
endpointUrl |
|
) |
| |
|
inlinevirtual |
Validates a certificate.
- Parameters
-
certificate | The certificate. |
chain | The chain. |
applicationUri | If not null the certificate must contain this URI. |
endpointUrl | If not null the certificate hostnames must match this URL. |
- Exceptions
-
System.ArgumentNullException | certificate |
Implements UnifiedAutomation.UaBase.ICertificateValidator.
Raised when a certificate validation error occurs.
string UnifiedAutomation.UaBase.CertificateValidator.EndpointUrl |
|
get |
Gets the endpoint URL associated with the validator.
The endpoint URL associated with the validator.
object UnifiedAutomation.UaBase.CertificateValidator.UserData |
|
getset |
Data provided by the user of the object.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase/Security/CertificateValidator.cs