Package com.bitbucket.thinbus.srp6.js
Class HexHashedXRoutine
- java.lang.Object
-
- com.bitbucket.thinbus.srp6.js.HexHashedXRoutine
-
- All Implemented Interfaces:
com.nimbusds.srp6.XRoutine
public class HexHashedXRoutine extends Object implements com.nimbusds.srp6.XRoutine
-
-
Constructor Summary
Constructors Constructor Description HexHashedXRoutine(BigInteger N)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegercomputeX(MessageDigest digest, byte[] salt, byte[] username, byte[] password)Computes the password key 'x'.
-
-
-
Constructor Detail
-
HexHashedXRoutine
public HexHashedXRoutine(BigInteger N)
-
-
Method Detail
-
computeX
public BigInteger computeX(MessageDigest digest, byte[] salt, byte[] username, byte[] password)
Computes the password key 'x'.- Specified by:
computeXin interfacecom.nimbusds.srp6.XRoutine- Parameters:
digest- The hash function 'H'.salt- The salt 's'. This is considered a mandatory argument in computation of 'x'. Must not benullor empty.username- The user identity 'I'. Must not benullor empty.password- The user password 'P'. This is considered a mandatory argument in the computation of 'x'. Must not benullor empty.- Returns:
- The resulting 'x' value.
-
-