|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rtner.security.auth.spi.MacBasedPRF
public class MacBasedPRF
Default PRF implementation based on standard javax.crypt.Mac mechanisms.
| Field Summary | |
|---|---|
protected int |
hLen
|
protected javax.crypto.Mac |
mac
|
protected java.lang.String |
macAlgorithm
|
| Constructor Summary | |
|---|---|
MacBasedPRF(java.lang.String macAlgorithm)
Create Mac-based Pseudo Random Function. |
|
MacBasedPRF(java.lang.String macAlgorithm,
java.lang.String provider)
|
|
| Method Summary | |
|---|---|
byte[] |
doFinal(byte[] M)
Pseudo Random Function |
int |
getHLen()
Query block size of underlying algorithm/mechanism. |
void |
init(byte[] P)
Initialize this instance with the user-supplied password. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.crypto.Mac mac
protected int hLen
protected java.lang.String macAlgorithm
| Constructor Detail |
|---|
public MacBasedPRF(java.lang.String macAlgorithm)
macAlgorithm - Mac algorithm to use, i.e. HMacSHA1 or HMacMD5.
public MacBasedPRF(java.lang.String macAlgorithm,
java.lang.String provider)
| Method Detail |
|---|
public byte[] doFinal(byte[] M)
PRF
doFinal in interface PRFM - Input data/message etc. Together with any data supplied during
initilization.
public int getHLen()
PRF
getHLen in interface PRFpublic void init(byte[] P)
PRF
init in interface PRFP - The password supplied as array of bytes. It is the caller's
task to convert String passwords to bytes as appropriate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||