CertificateFactory.GetInstance Method

Definition

Overloads

GetInstance(String)

Returns a certificate factory object that implements the specified certificate type.

GetInstance(String, Provider)

Returns a certificate factory object for the specified certificate type.

GetInstance(String, String)

Returns a certificate factory object for the specified certificate type.

GetInstance(String)

Returns a certificate factory object that implements the specified certificate type.

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

Parameters

type
String

the name of the requested certificate type. See the CertificateFactory section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard certificate types.

Returns

a certificate factory object for the specified type.

Attributes

Exceptions

if the specified certificate type is not available at any installed provider.

if type == null

Remarks

Returns a certificate factory object that implements the specified certificate type.

This method traverses the list of registered security Providers, starting with the most preferred Provider. A new CertificateFactory object encapsulating the CertificateFactorySpi implementation from the first Provider that supports the specified type 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.CertificateFactory.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 certificate factory object for the specified certificate type.

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

Parameters

type
String

the certificate type. See the CertificateFactory section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard certificate types.

provider
Provider

the provider.

Returns

a certificate factory object for the specified type.

Attributes

Exceptions

if the specified certificate type is not available at the specified provider.

if the specified provider is null.

if type == null

if provider == null

Remarks

Returns a certificate factory object for the specified certificate type.

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

Added in 1.4.

Java documentation for java.security.cert.CertificateFactory.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 certificate factory object for the specified certificate type.

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

Parameters

type
String

the certificate type. See the CertificateFactory section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard certificate types.

provider
String

the name of the provider.

Returns

a certificate factory object for the specified type.

Attributes

Exceptions

if the specified certificate type is not available by the specified provider.

if no provider with the specified name can be found.

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

it type is null.

Remarks

Returns a certificate factory object for the specified certificate type.

A new CertificateFactory object encapsulating the CertificateFactorySpi 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.CertificateFactory.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