|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.security.spec.PBEKeyAndParameterSpec
This class is simply a combination of PBEParameterSpec and PBEKeySpec since both specs are needed when generating a SecretKey for a MAC. Typically a MAC SecretKey depends on a user specified password, a salt value and an iteration count.
Constructor Summary | |
PBEKeyAndParameterSpec(byte[] password,
byte[] salt,
int iterationCount,
int derivedKeyLength)
Constructs a parameter set for password-based encryption for generating MAC secret keys. |
Method Summary | |
int |
getDerivedKeyLength()
Returns the length the derived key should have. |
int |
getIterationCount()
Returns the iteration count. |
byte[] |
getPassword()
Returns the password. |
byte[] |
getSalt()
Returns the salt. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PBEKeyAndParameterSpec(byte[] password, byte[] salt, int iterationCount, int derivedKeyLength)
password
- the passwordsalt
- the saltiterationCount
- the iteration countderivedKeyLength
- the length the derived key should haveMethod Detail |
public final int getIterationCount()
public final int getDerivedKeyLength()
public final byte[] getSalt()
public final byte[] getPassword()
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |