KeyStore.GetInstance 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.
Overloads
| GetInstance(String) |
Returns a keystore object of the specified type. |
| GetInstance(String, Provider) |
Returns a keystore object of the specified type. |
| GetInstance(String, String) |
Returns a keystore object of the specified type. |
GetInstance(String)
Returns a keystore object of the specified type.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/KeyStore;", "")]
public static Java.Security.KeyStore? GetInstance (string? type);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/KeyStore;", "")>]
static member GetInstance : string -> Java.Security.KeyStore
Parameters
- type
- String
the type of keystore. See the KeyStore section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard keystore types.
Returns
a keystore object of the specified type.
- Attributes
Exceptions
if an error occurred during the creation of the new KeyStore.
if type == null
Remarks
Java documentation for java.security.KeyStore.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.
See also
Applies to
GetInstance(String, Provider)
Returns a keystore object of the specified type.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyStore;", "")]
public static Java.Security.KeyStore? GetInstance (string? type, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyStore;", "")>]
static member GetInstance : string * Java.Security.Provider -> Java.Security.KeyStore
Parameters
- type
- String
the type of keystore. See the KeyStore section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard keystore types.
- provider
- Provider
the provider.
Returns
a keystore object of the specified type.
- Attributes
Exceptions
if an error occurred during the creation of the new KeyStore.
if provider is null or the empty string.
if type == null (instead of
NoSuchAlgorithmException) as in 1.4 release
Remarks
Java documentation for java.security.KeyStore.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.
See also
Applies to
GetInstance(String, String)
Returns a keystore object of the specified type.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;", "")]
public static Java.Security.KeyStore? GetInstance (string? type, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;", "")>]
static member GetInstance : string * string -> Java.Security.KeyStore
Parameters
- type
- String
the type of keystore. See the KeyStore section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard keystore types.
- provider
- String
the name of the provider.
Returns
a keystore object of the specified type.
- Attributes
Exceptions
if an error occurred during the creation of the new KeyStore.
if the specified provider is not available.
if provider == null || provider.isEmpty()
if type is null (instead of
NoSuchAlgorithmException) as in 1.4 release
Remarks
Java documentation for java.security.KeyStore.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.