public class XRoutineWithUserIdentity extends java.lang.Object implements XRoutine
Specification: RFC 5054.
This routine can be passed to the SRP6VerifierGenerator and
SRP6ClientSession to replace the
default routine x = H(s | H(P)).
| Constructor and Description |
|---|
XRoutineWithUserIdentity() |
| Modifier and Type | Method and Description |
|---|---|
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 this routine algorithm.
|
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).
public java.lang.String toString()
toString in class java.lang.Object