Added in API level 1

PBEKey

interface PBEKey : SecretKey
javax.crypto.interfaces.PBEKey

The interface to a PBE key.

Summary

Constants
static Long

The class fingerprint that is set to indicate serialization compatibility since J2SE 1.

Public methods
abstract Int

Returns the iteration count or 0 if not specified.

abstract CharArray!

Returns the password.

abstract ByteArray!

Returns the salt or null if not specified.

Constants

serialVersionUID

Added in API level 1
static val serialVersionUID: Long

The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Value: -1430015993304333921L

Public methods

getIterationCount

Added in API level 1
abstract fun getIterationCount(): Int

Returns the iteration count or 0 if not specified.

Return
Int the iteration count.

getPassword

Added in API level 1
abstract fun getPassword(): CharArray!

Returns the password.

Note: this method should return a copy of the password. It is the caller's responsibility to zero out the password information after it is no longer needed.

Return
CharArray! the password.

getSalt

Added in API level 1
abstract fun getSalt(): ByteArray!

Returns the salt or null if not specified.

Note: this method should return a copy of the salt. It is the caller's responsibility to zero out the salt information after it is no longer needed.

Return
ByteArray! the salt.