PBEKeySpecCommon

Constructors

Link copied to clipboard
constructor(password: CharArray?)

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

constructor(password: CharArray?, salt: ByteArray?, iterationCount: Int, keyLength: Int)

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.

constructor(password: CharArray?, salt: ByteArray?, iterationCount: Int)

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.

Properties

Link copied to clipboard

Returns the iteration count or 0 if not specified.

Link copied to clipboard

Returns the to-be-derived key length or 0 if not specified.

Link copied to clipboard

Returns a copy of the password.

Link copied to clipboard

Returns a copy of the salt or null if not specified.

Functions

Link copied to clipboard

Clears the internal copy of the password.