Signature.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 Signature object that implements the specified signature algorithm. |
| GetInstance(String, Provider) |
Returns a Signature object that implements the specified signature algorithm. |
| GetInstance(String, String) |
Returns a Signature object that implements the specified signature algorithm. |
GetInstance(String)
Returns a Signature object that implements the specified signature algorithm.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/Signature;", "")]
public static Java.Security.Signature? GetInstance (string? algorithm);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljava/security/Signature;", "")>]
static member GetInstance : string -> Java.Security.Signature
Parameters
- algorithm
- String
the standard name of the algorithm requested. See the Signature section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#Signature"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard algorithm names.
Returns
the new Signature object.
- Attributes
Exceptions
if the specified algorithm is not available.
if algorithm is null.
Remarks
Java documentation for java.security.Signature.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 Signature object that implements the specified signature algorithm.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/Signature;", "")]
public static Java.Security.Signature? GetInstance (string? algorithm, Java.Security.Provider? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/Signature;", "")>]
static member GetInstance : string * Java.Security.Provider -> Java.Security.Signature
Parameters
- algorithm
- String
the name of the algorithm requested. See the Signature section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#Signature"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard algorithm names.
- provider
- Provider
the provider.
Returns
the new Signature object.
- Attributes
Exceptions
if the specified algorithm is not available.
if algorithm is null.
if provider == null
Remarks
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 Signature object that implements the specified signature algorithm.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/Signature;", "")]
public static Java.Security.Signature? GetInstance (string? algorithm, string? provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/Signature;", "")>]
static member GetInstance : string * string -> Java.Security.Signature
Parameters
- algorithm
- String
the name of the algorithm requested. See the Signature section in the <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#Signature"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard algorithm names.
- provider
- String
the name of the provider.
Returns
the new Signature object.
- Attributes
Exceptions
if the specified algorithm is not available.
if the specified provider is not available.
if algorithm is null.
if provider == null || provider.isEmpty()
Remarks
Java documentation for java.security.Signature.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.