CertPathValidator.Validate(CertPath, ICertPathParameters) Method

Definition

Validates the specified certification path using the specified algorithm parameter set.

[Android.Runtime.Register("validate", "(Ljava/security/cert/CertPath;Ljava/security/cert/CertPathParameters;)Ljava/security/cert/CertPathValidatorResult;", "")]
public Java.Security.Cert.ICertPathValidatorResult? Validate (Java.Security.Cert.CertPath? certPath, Java.Security.Cert.ICertPathParameters? params);
[<Android.Runtime.Register("validate", "(Ljava/security/cert/CertPath;Ljava/security/cert/CertPathParameters;)Ljava/security/cert/CertPathValidatorResult;", "")>]
member this.Validate : Java.Security.Cert.CertPath * Java.Security.Cert.ICertPathParameters -> Java.Security.Cert.ICertPathValidatorResult

Parameters

certPath
CertPath

the CertPath to be validated

params
ICertPathParameters

the algorithm parameters

Returns

the result of the validation algorithm

Attributes

Exceptions

if the validation fails, or the algorithm of the specified certification path cannot be validated using the algorithm of this instance.

if the specified algorithm parameters cannot be used with this algorithm.

Remarks

Validates the specified certification path using the specified algorithm parameter set.

The CertPath specified must be of a type that is supported by the validation algorithm, otherwise an InvalidAlgorithmParameterException will be thrown. For example, a CertPathValidator that implements the PKIX algorithm validates CertPath objects of type X.509.

Java documentation for java.security.cert.CertPathValidator.validate(java.security.cert.CertPath, java.security.cert.CertPathParameters).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also