Udostępnij za pośrednictwem


PBEKeySpec Constructors

Definition

Overloads

PBEKeySpec(Char[])

Constructor that takes a password.

PBEKeySpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PBEKeySpec(Char[], Byte[], Int32)

Constructor that takes a password, salt, iteration count for generating PBEKey of fixed-key-size PBE ciphers.

PBEKeySpec(Char[], Byte[], Int32, Int32)

Constructor that takes a password, salt, iteration count, and to-be-derived key length for generating PBEKey of variable-key-size PBE ciphers.

PBEKeySpec(Char[])

Constructor that takes a password.

[Android.Runtime.Register(".ctor", "([C)V", "")]
public PBEKeySpec (char[]? password);
[<Android.Runtime.Register(".ctor", "([C)V", "")>]
new Javax.Crypto.Spec.PBEKeySpec : char[] -> Javax.Crypto.Spec.PBEKeySpec

Parameters

password
Char[]

the password.

Attributes

Remarks

Constructor that takes a password. An empty char[] is used if null is specified.

Note: password is cloned before it is stored in the new PBEKeySpec object.

Java documentation for javax.crypto.spec.PBEKeySpec.PBEKeySpec(char[]).

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

PBEKeySpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PBEKeySpec (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Crypto.Spec.PBEKeySpec : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Crypto.Spec.PBEKeySpec

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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

PBEKeySpec(Char[], Byte[], Int32)

Constructor that takes a password, salt, iteration count for generating PBEKey of fixed-key-size PBE ciphers.

[Android.Runtime.Register(".ctor", "([C[BI)V", "")]
public PBEKeySpec (char[]? password, byte[]? salt, int iterationCount);
[<Android.Runtime.Register(".ctor", "([C[BI)V", "")>]
new Javax.Crypto.Spec.PBEKeySpec : char[] * byte[] * int -> Javax.Crypto.Spec.PBEKeySpec

Parameters

password
Char[]

the password.

salt
Byte[]

the salt.

iterationCount
Int32

the iteration count.

Attributes

Exceptions

if salt is null.

if the salt is empty or iteration count is zero or negative.

Remarks

Constructor that takes a password, salt, iteration count for generating PBEKey of fixed-key-size PBE ciphers. An empty char[] is used if null is specified for password.

Note: the password and salt are cloned before they are stored in the new PBEKeySpec object.

Java documentation for javax.crypto.spec.PBEKeySpec.PBEKeySpec(char[], byte[], int).

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

PBEKeySpec(Char[], Byte[], Int32, Int32)

Constructor that takes a password, salt, iteration count, and to-be-derived key length for generating PBEKey of variable-key-size PBE ciphers.

[Android.Runtime.Register(".ctor", "([C[BII)V", "")]
public PBEKeySpec (char[]? password, byte[]? salt, int iterationCount, int keyLength);
[<Android.Runtime.Register(".ctor", "([C[BII)V", "")>]
new Javax.Crypto.Spec.PBEKeySpec : char[] * byte[] * int * int -> Javax.Crypto.Spec.PBEKeySpec

Parameters

password
Char[]

the password.

salt
Byte[]

the salt.

iterationCount
Int32

the iteration count.

keyLength
Int32

the to-be-derived key length.

Attributes

Exceptions

if the salt is null.

if the salt is empty, iteration count is zero or negative or the key length is zero or negative.

Remarks

Constructor that takes a password, salt, iteration count, and to-be-derived key length for generating PBEKey of variable-key-size PBE ciphers. An empty char[] is used if null is specified for password.

Note: the password and salt are cloned before they are stored in the new PBEKeySpec object.

Java documentation for javax.crypto.spec.PBEKeySpec.PBEKeySpec(char[], byte[], int, int).

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