CertPathValidator.Validate(CertPath, ICertPathParameters) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.