|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rtner.security.auth.spi.PBKDF2Parameters
public class PBKDF2Parameters
Parameter data holder for PBKDF2 configuration.
| Field Summary | |
|---|---|
protected byte[] |
derivedKey
The derived key is actually only a convenience to store a reference derived key. |
protected java.lang.String |
hashAlgorithm
|
protected java.lang.String |
hashCharset
|
protected int |
iterationCount
|
protected byte[] |
salt
|
| Constructor Summary | |
|---|---|
PBKDF2Parameters()
Constructor. |
|
PBKDF2Parameters(java.lang.String hashAlgorithm,
java.lang.String hashCharset,
byte[] salt,
int iterationCount)
Constructor. |
|
PBKDF2Parameters(java.lang.String hashAlgorithm,
java.lang.String hashCharset,
byte[] salt,
int iterationCount,
byte[] derivedKey)
Constructor. |
|
| Method Summary | |
|---|---|
byte[] |
getDerivedKey()
|
java.lang.String |
getHashAlgorithm()
|
java.lang.String |
getHashCharset()
|
int |
getIterationCount()
|
byte[] |
getSalt()
|
void |
setDerivedKey(byte[] derivedKey)
|
void |
setHashAlgorithm(java.lang.String hashAlgorithm)
|
void |
setHashCharset(java.lang.String hashCharset)
|
void |
setIterationCount(int iterationCount)
|
void |
setSalt(byte[] salt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] salt
protected int iterationCount
protected java.lang.String hashAlgorithm
protected java.lang.String hashCharset
protected byte[] derivedKey
| Constructor Detail |
|---|
public PBKDF2Parameters()
null for byte arrays, UTF-8 as
character set and 1000 for iteration count.
public PBKDF2Parameters(java.lang.String hashAlgorithm,
java.lang.String hashCharset,
byte[] salt,
int iterationCount)
hashAlgorithm - for example HMacSHA1 or HMacMD5hashCharset - for example UTF-8salt - Salt as byte array, may be null (not
recommended)iterationCount - Number of iterations to execute. Recommended value 1000.
public PBKDF2Parameters(java.lang.String hashAlgorithm,
java.lang.String hashCharset,
byte[] salt,
int iterationCount,
byte[] derivedKey)
hashAlgorithm - for example HMacSHA1 or HMacMD5hashCharset - for example UTF-8salt - Salt as byte array, may be null (not
recommended)iterationCount - Number of iterations to execute. Recommended value 1000.derivedKey - Convenience data holder, not used during computation.| Method Detail |
|---|
public int getIterationCount()
public void setIterationCount(int iterationCount)
public byte[] getSalt()
public void setSalt(byte[] salt)
public byte[] getDerivedKey()
public void setDerivedKey(byte[] derivedKey)
public java.lang.String getHashAlgorithm()
public void setHashAlgorithm(java.lang.String hashAlgorithm)
public java.lang.String getHashCharset()
public void setHashCharset(java.lang.String hashCharset)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||