Freigeben über


CertStore.GetInstance Method

Definition

Overloads

GetInstance(String, ICertStoreParameters)

Returns a CertStore object that implements the specified CertStore type and is initialized with the specified parameters.

GetInstance(String, ICertStoreParameters, Provider)

Returns a CertStore object that implements the specified CertStore type.

GetInstance(String, ICertStoreParameters, String)

Returns a CertStore object that implements the specified CertStore type.

GetInstance(String, ICertStoreParameters)

Returns a CertStore object that implements the specified CertStore type and is initialized with the specified parameters.

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

Parameters

type
String

the name of the requested CertStore type. See the CertStore section in the Java Security Standard Algorithm Names Specification for information about standard types.

params
ICertStoreParameters

the initialization parameters (may be null).

Returns

a CertStore object that implements the specified CertStore type

Attributes

Exceptions

if no provider can provide the specified certificate store type.

if the specified parameters cannot be used to initialize this certificate store instance.

if type == null

Remarks

Returns a CertStore object that implements the specified CertStore type and is initialized with the specified parameters.

This method traverses the list of registered security Providers, starting with the most preferred Provider. A new CertStore object encapsulating the CertStoreSpi 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.

The CertStore that is returned is initialized with the specified CertStoreParameters. The type of parameters needed may vary between different types of CertStores. Note that the specified CertStoreParameters object is cloned.

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

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, ICertStoreParameters, Provider)

Returns a CertStore object that implements the specified CertStore type.

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

Parameters

type
String

the requested CertStore type. See the CertStore section in the Java Security Standard Algorithm Names Specification for information about standard types.

params
ICertStoreParameters

the initialization parameters (may be null).

provider
Provider

the provider.

Returns

a CertStore object that implements the specified type

Attributes

Exceptions

if the specified provider cannot provide the requested certificate store type.

if the specified parameters cannot be used to initialize this certificate store instance.

if provider == null

if type == null

Remarks

Returns a CertStore object that implements the specified CertStore type.

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

The CertStore that is returned is initialized with the specified CertStoreParameters. The type of parameters needed may vary between different types of CertStores. Note that the specified CertStoreParameters object is cloned.

Java documentation for java.security.cert.CertStore.getInstance(java.lang.String, java.security.cert.CertStoreParameters, 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, ICertStoreParameters, String)

Returns a CertStore object that implements the specified CertStore type.

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

Parameters

type
String

the requested CertStore type. See the CertStore section in the Java Security Standard Algorithm Names Specification for information about standard types.

params
ICertStoreParameters

the initialization parameters (may be null).

provider
String

the name of the provider.

Returns

a CertStore object that implements the specified type

Attributes

Exceptions

if the specified provider cannot provide the requested certificate store type.

if no provider with the specified name can be found.

if the specified parameters cannot be used to initialize this certificate store instance.

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

if type is null.

Remarks

Returns a CertStore object that implements the specified CertStore type.

A new CertStore object encapsulating the CertStoreSpi 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.

The CertStore that is returned is initialized with the specified CertStoreParameters. The type of parameters needed may vary between different types of CertStores. Note that the specified CertStoreParameters object is cloned.

Java documentation for java.security.cert.CertStore.getInstance(java.lang.String, java.security.cert.CertStoreParameters, 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