|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.srp6.XRoutineWithUserIdentity
public class XRoutineWithUserIdentity
Alternative routine for computing a password key x = H(s | H(I | ":" | P))
Specification: RFC 5054.
This routine can be passed to the SRP6VerifierGenerator and
SRP6ClientSession to replace the
default routine x = H(s | H(P)).
| Constructor Summary | |
|---|---|
XRoutineWithUserIdentity()
|
|
| Method Summary | |
|---|---|
java.math.BigInteger |
computeX(java.security.MessageDigest digest,
byte[] salt,
byte[] username,
byte[] password)
Computes x = H(s | H(I | ":" | P)) |
java.lang.String |
toString()
Returns a string representation of the routine algorightm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XRoutineWithUserIdentity()
| Method Detail |
|---|
public java.math.BigInteger computeX(java.security.MessageDigest digest,
byte[] salt,
byte[] username,
byte[] password)
This method complies with the RFC 5054 recommendation, save for the hash algorithm which can be any (RFC 5054 recommends SHA-1).
computeX in interface XRoutinedigest - The hash function 'H'. Must not be null.salt - The salt 's'. Must not be null.username - The user identity 'I'. Must not be null.password - The user password 'P'. Must not be null.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||