Added in API level 1

PBEParameterSpec

open class PBEParameterSpec : AlgorithmParameterSpec
kotlin.Any
   ↳ javax.crypto.spec.PBEParameterSpec

This class specifies the set of parameters used with password-based encryption (PBE), as defined in the PKCS #5 standard.

Summary

Public constructors
PBEParameterSpec(salt: ByteArray!, iterationCount: Int)

Constructs a parameter set for password-based encryption as defined in the PKCS #5 standard.

PBEParameterSpec(salt: ByteArray!, iterationCount: Int, paramSpec: AlgorithmParameterSpec!)

Constructs a parameter set for password-based encryption as defined in the PKCS #5 standard.

Public methods
open Int

Returns the iteration count.

open AlgorithmParameterSpec!

Returns the cipher algorithm parameter specification.

open ByteArray!

Returns the salt.

Public constructors

PBEParameterSpec

Added in API level 1
PBEParameterSpec(
    salt: ByteArray!,
    iterationCount: Int)

Constructs a parameter set for password-based encryption as defined in the PKCS #5 standard.

Parameters
salt ByteArray!: the salt. The contents of salt are copied to protect against subsequent modification.
iterationCount Int: the iteration count.
Exceptions
java.lang.NullPointerException if salt is null.

PBEParameterSpec

Added in API level 26
PBEParameterSpec(
    salt: ByteArray!,
    iterationCount: Int,
    paramSpec: AlgorithmParameterSpec!)

Constructs a parameter set for password-based encryption as defined in the PKCS #5 standard.

Parameters
salt ByteArray!: the salt. The contents of salt are copied to protect against subsequent modification.
iterationCount Int: the iteration count.
paramSpec AlgorithmParameterSpec!: the cipher algorithm parameter specification, which may be null.
Exceptions
java.lang.NullPointerException if salt is null.

Public methods

getIterationCount

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

Returns the iteration count.

Return
Int the iteration count

getParameterSpec

Added in API level 26
open fun getParameterSpec(): AlgorithmParameterSpec!

Returns the cipher algorithm parameter specification.

Return
AlgorithmParameterSpec! the parameter specification, or null if none was set.

getSalt

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

Returns the salt.

Return
ByteArray! the salt. Returns a new array each time this method is called.