Validates certificates.
More...
void UnifiedAutomation.UaBase.CertificateValidator.Accept |
( |
ICertificate |
certificate | ) |
|
|
inline |
Accepts the specified certificate for as long as the process is running.
- Parameters
-
certificate | The certificate. |
void UnifiedAutomation.UaBase.CertificateValidator.ChangeApplicationCertificate |
( |
ICertificate |
certificate | ) |
|
|
inline |
Changes the application certificate.
- Parameters
-
certificate | The new certificate. |
X509CertificateValidator UnifiedAutomation.UaBase.CertificateValidator.GetChannelValidator |
( |
| ) |
|
|
inline |
Returns an object that can be used with WCF channel.
Returns the issuers for the certificate.
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 |
Removes the certificate from the list of accepted certificates (does not change the trust list).
- Parameters
-
certificate | The certificate. |
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. |
virtual void UnifiedAutomation.UaBase.CertificateValidator.Validate |
( |
ICertificate |
certificate, |
|
|
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 |
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.
The documentation for this class was generated from the following file:
- D:/work/uasdknet/src/UaBase/Security/CertificateValidator.cs