KeyStore.PasswordProtection Constructors
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
KeyStore.PasswordProtection(Char[]) |
Creates a password parameter. |
KeyStore.PasswordProtection(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
KeyStore.PasswordProtection(Char[], String, IAlgorithmParameterSpec) |
Creates a password parameter and specifies the protection algorithm and associated parameters to use when encrypting a keystore entry. |
KeyStore.PasswordProtection(Char[])
Creates a password parameter.
[Android.Runtime.Register(".ctor", "([C)V", "")]
public PasswordProtection (char[] password);
[<Android.Runtime.Register(".ctor", "([C)V", "")>]
new Java.Security.KeyStore.PasswordProtection : char[] -> Java.Security.KeyStore.PasswordProtection
Parameters
- password
- Char[]
the password, which may be null
- Attributes
Remarks
Creates a password parameter.
The specified password
is cloned before it is stored in the new PasswordProtection
object.
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
KeyStore.PasswordProtection(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected PasswordProtection (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.KeyStore.PasswordProtection : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.KeyStore.PasswordProtection
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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
KeyStore.PasswordProtection(Char[], String, IAlgorithmParameterSpec)
Creates a password parameter and specifies the protection algorithm and associated parameters to use when encrypting a keystore entry.
[Android.Runtime.Register(".ctor", "([CLjava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)V", "", ApiSince=26)]
public PasswordProtection (char[] password, string protectionAlgorithm, Java.Security.Spec.IAlgorithmParameterSpec protectionParameters);
[<Android.Runtime.Register(".ctor", "([CLjava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)V", "", ApiSince=26)>]
new Java.Security.KeyStore.PasswordProtection : char[] * string * Java.Security.Spec.IAlgorithmParameterSpec -> Java.Security.KeyStore.PasswordProtection
Parameters
- password
- Char[]
the password, which may be null
- protectionAlgorithm
- String
the encryption algorithm name, for
example, PBEWithHmacSHA256AndAES_256
.
See the Cipher section in the
Java Security Standard Algorithm Names Specification
for information about standard encryption algorithm names.
- protectionParameters
- IAlgorithmParameterSpec
the encryption algorithm parameter
specification, which may be null
- Attributes
Remarks
Creates a password parameter and specifies the protection algorithm and associated parameters to use when encrypting a keystore entry.
The specified password
is cloned before it is stored in the new PasswordProtection
object.
Added in 1.8.
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.