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! |
getSalt() Returns the salt. |
Public constructors
PBEParameterSpec
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
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
open fun getIterationCount(): Int
Returns the iteration count.
Return | |
---|---|
Int |
the iteration count |
getParameterSpec
open fun getParameterSpec(): AlgorithmParameterSpec!
Returns the cipher algorithm parameter specification.
Return | |
---|---|
AlgorithmParameterSpec! |
the parameter specification, or null if none was set. |
getSalt
open fun getSalt(): ByteArray!
Returns the salt.
Return | |
---|---|
ByteArray! |
the salt. Returns a new array each time this method is called. |