Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

PBEParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ javax.crypto.spec.PBEParameterSpec

Class Overview

The algorithm parameter specification for a password based encryption algorithm.

Password based encryption is described in PKCS #5 .

Summary

Public Constructors
PBEParameterSpec (byte[] salt, int iterationCount)
Creates a new PBEParameterSpec with the specified salt and iteration count.
Public Methods
int getIterationCount ()
Returns the iteration count.
byte[] getSalt ()
Returns a copy to the salt.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PBEParameterSpec (byte[] salt, int iterationCount)

Added in API level 1

Creates a new PBEParameterSpec with the specified salt and iteration count.

Parameters
salt the salt.
iterationCount the iteration count.
Throws
NullPointerException if salt is null.

Public Methods

public int getIterationCount ()

Added in API level 1

Returns the iteration count.

Returns
  • the iteration count.

public byte[] getSalt ()

Added in API level 1

Returns a copy to the salt.

Returns
  • a copy to the salt.