KeyGenParameterSpec.Builder.SetSignaturePaddings(String[]) 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.
Sets the set of padding schemes (e.g., PSS, PKCS#1) with which the key can be used when signing/verifying.
[Android.Runtime.Register("setSignaturePaddings", "([Ljava/lang/String;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetSignaturePaddings(params string[]? paddings);
[<Android.Runtime.Register("setSignaturePaddings", "([Ljava/lang/String;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)>]
member this.SetSignaturePaddings : string[] -> Android.Security.Keystore.KeyGenParameterSpec.Builder
Parameters
- paddings
- String[]
Value is one of the following: KeyProperties.SIGNATURE_PADDING_RSA_PKCS1; KeyProperties.SIGNATURE_PADDING_RSA_PSS
Returns
- Attributes
Remarks
Sets the set of padding schemes (e.g., PSS, PKCS#1) with which the key can be used when signing/verifying. Attempts to use the key with any other padding scheme will be rejected.
This must be specified for RSA keys which are used for signing/verification.
See KeyProperties.SIGNATURE_PADDING constants.
Android reference for android.security.keystore.KeyGenParameterSpec.Builder.setSignaturePaddings.
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.