Partager via


CertPathValidator.GetInstance Method

Definition

Overloads

GetInstance(String)

Returns a CertPathValidator object that implements the specified algorithm.

GetInstance(String, Provider)

Returns a CertPathValidator object that implements the specified algorithm.

GetInstance(String, String)

Returns a CertPathValidator object that implements the specified algorithm.

GetInstance(String)

Returns a CertPathValidator object that implements the specified algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/cert/CertPathValidator;", "")]
public static Java.Security.Cert.CertPathValidator? GetInstance (string? algorithm);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/cert/CertPathValidator;", "")>]
static member GetInstance : string -> Java.Security.Cert.CertPathValidator

Parameters

algorithm
String

the name of the requested CertPathValidator algorithm. See the CertPathValidator section in the Java Security Standard Algorithm Names Specification for information about standard algorithm names.

Returns

a CertPathValidator object that implements the specified algorithm

Attributes

Exceptions

if no installed provider provides the specified algorithm.

if algorithm is null.

Remarks

Returns a CertPathValidator object that implements the specified algorithm.

This method traverses the list of registered security Providers, starting with the most preferred Provider. A new CertPathValidator object encapsulating the CertPathValidatorSpi implementation from the first Provider that supports the specified algorithm is returned.

Note that the list of registered providers may be retrieved via the Security#getProviders() Security.getProviders() method.

Java documentation for java.security.cert.CertPathValidator.getInstance(java.lang.String).

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

GetInstance(String, Provider)

Returns a CertPathValidator object that implements the specified algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/cert/CertPathValidator;", "")]
public static Java.Security.Cert.CertPathValidator? GetInstance (string? algorithm, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/cert/CertPathValidator;", "")>]
static member GetInstance : string * Java.Security.Provider -> Java.Security.Cert.CertPathValidator

Parameters

algorithm
String

the name of the requested CertPathValidator algorithm. See the CertPathValidator section in the Java Security Standard Algorithm Names Specification for information about standard algorithm names.

provider
Provider

the provider.

Returns

a CertPathValidator object that implements the specified algorithm

Attributes

Exceptions

if the specified provider cannot provide the requested algorithm.

if provider == null

if algorithm is null.

Remarks

Returns a CertPathValidator object that implements the specified algorithm.

A new CertPathValidator object encapsulating the CertPathValidatorSpi implementation from the specified Provider object is returned. Note that the specified Provider object does not have to be registered in the provider list.

Java documentation for java.security.cert.CertPathValidator.getInstance(java.lang.String, java.security.Provider).

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

GetInstance(String, String)

Returns a CertPathValidator object that implements the specified algorithm.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/cert/CertPathValidator;", "")]
public static Java.Security.Cert.CertPathValidator? GetInstance (string? algorithm, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/cert/CertPathValidator;", "")>]
static member GetInstance : string * string -> Java.Security.Cert.CertPathValidator

Parameters

algorithm
String

the name of the requested CertPathValidator algorithm. See the CertPathValidator section in the Java Security Standard Algorithm Names Specification for information about standard algorithm names.

provider
String

the name of the provider.

Returns

a CertPathValidator object that implements the specified algorithm

Attributes

Exceptions

if the specified security provider cannot provide the requested algorithm.

if no provider with the specified name can be found.

if algorithm is null.

if provider == null || provider.isEmpty()

Remarks

Returns a CertPathValidator object that implements the specified algorithm.

A new CertPathValidator object encapsulating the CertPathValidatorSpi implementation from the specified provider is returned. The specified provider must be registered in the security provider list.

Note that the list of registered providers may be retrieved via the Security#getProviders() Security.getProviders() method.

Java documentation for java.security.cert.CertPathValidator.getInstance(java.lang.String, java.lang.String).

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