Package de.bsvrz.sys.funclib.srp6
Class XRoutineWithUserIdentity
- java.lang.Object
-
- de.bsvrz.sys.funclib.srp6.XRoutineWithUserIdentity
-
- All Implemented Interfaces:
XRoutine
public class XRoutineWithUserIdentity extends java.lang.Object implements XRoutine
Alternative routine for computing a password key x = H(s | H(I | ":" | P))Specification: RFC 5054.
This routine can be passed to the
SRP6VerifierGenerator
andSRP6ClientSession
to replace thedefault routine
x = H(s | H(P)).
-
-
Constructor Summary
Constructors Constructor Description XRoutineWithUserIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
computeX
public java.math.BigInteger computeX(java.security.MessageDigest digest, byte[] salt, byte[] username, byte[] password)
Computes x = H(s | H(I | ":" | P))This method complies with the RFC 5054 recommendation, save for the hash algorithm which can be any (RFC 5054 recommends SHA-1).
-
toString
public java.lang.String toString()
Returns a string representation of this routine algorithm.- Overrides:
toString
in classjava.lang.Object
- Returns:
- "H(s | H(I | ":" | P))"
-
-