Class HexHashedClientEvidenceRoutine

  • All Implemented Interfaces:
    com.nimbusds.srp6.ClientEvidenceRoutine, Serializable

    public class HexHashedClientEvidenceRoutine
    extends Object
    implements com.nimbusds.srp6.ClientEvidenceRoutine, Serializable
    Custom routine interface for computing the client evidence message 'M1'. Compatible with browser implementations by using hashing of concatenated hex strings H( HEX(A) | HEX(B) | HEX(S) ).

    Specification RFC 2945

    Author:
    Simon Massey
    See Also:
    Serialized Form
    • Method Detail

      • computeClientEvidence

        public BigInteger computeClientEvidence​(com.nimbusds.srp6.SRP6CryptoParams cryptoParams,
                                                com.nimbusds.srp6.SRP6ClientEvidenceContext ctx)
        Computes a client evidence message 'M1'.
        Specified by:
        computeClientEvidence in interface com.nimbusds.srp6.ClientEvidenceRoutine
        Parameters:
        cryptoParams - The crypto parameters for the SRP-6a protocol.
        ctx - Snapshot of the SRP-6a client session variables which may be used in the computation of the client evidence message.
        Returns:
        Client evidence message 'M1' as 'H( HEX(A) | HEX(B) | HEX(S) )'.