Class HexHashedXRoutine

  • All Implemented Interfaces:
    com.nimbusds.srp6.XRoutine

    public class HexHashedXRoutine
    extends Object
    implements com.nimbusds.srp6.XRoutine
    • Method Detail

      • computeX

        public BigInteger computeX​(MessageDigest digest,
                                   byte[] salt,
                                   byte[] username,
                                   byte[] password)
        Computes the password key 'x'.
        Specified by:
        computeX in interface com.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 be null or empty.
        username - The user identity 'I'. Must not be null or empty.
        password - The user password 'P'. This is considered a mandatory argument in the computation of 'x'. Must not be null or empty.
        Returns:
        The resulting 'x' value.