Hpke.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
| Name | Description |
|---|---|
| GetInstance(String) |
Returns an Hpke instance configured for the requested HPKE suite, using the
highest priority |
| GetInstance(String, Provider) |
Returns an Hpke instance configured for the requested HPKE suite, using the
requested |
| GetInstance(String, String) |
Returns an Hpke instance configured for the requested HPKE suite, using the
requested |
GetInstance(String)
Returns an Hpke instance configured for the requested HPKE suite, using the
highest priority Provider which implements it.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)]
public static Android.Crypto.Hpke.Hpke GetInstance(string suiteName);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)>]
static member GetInstance : string -> Android.Crypto.Hpke.Hpke
Parameters
- suiteName
- String
the HPKE suite to use
Returns
an Hpke instance configured for the requested suite
- Attributes
Remarks
Returns an Hpke instance configured for the requested HPKE suite, using the highest priority Provider which implements it.
Use Hpke.getSuiteName(KemParameterSpec,KdfParameterSpec,AeadParameterSpec) for generating HPKE suite names from NamedParameterSpecs
Android reference for android.crypto.hpke.Hpke.getInstance.
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 an Hpke instance configured for the requested HPKE suite, using the
requested Provider.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)]
public static Android.Crypto.Hpke.Hpke GetInstance(string suiteName, Java.Security.Provider provider);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)>]
static member GetInstance : string * Java.Security.Provider -> Android.Crypto.Hpke.Hpke
Parameters
- suiteName
- String
the HPKE suite to use
- provider
- Provider
the provider to use
Returns
an Hpke instance configured for the requested suite and Provider
- Attributes
Remarks
Returns an Hpke instance configured for the requested HPKE suite, using the requested Provider.
Android reference for android.crypto.hpke.Hpke.getInstance.
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 an Hpke instance configured for the requested HPKE suite, using the
requested Provider by name.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)]
public static Android.Crypto.Hpke.Hpke GetInstance(string suiteName, string providerName);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Landroid/crypto/hpke/Hpke;", "", ApiSince=37)>]
static member GetInstance : string * string -> Android.Crypto.Hpke.Hpke
Parameters
- suiteName
- String
the HPKE suite to use
- providerName
- String
the name of the provider to use
Returns
an Hpke instance configured for the requested suite and Provider
- Attributes
Remarks
Returns an Hpke instance configured for the requested HPKE suite, using the requested Provider by name.
Android reference for android.crypto.hpke.Hpke.getInstance.
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.