Package com.bitbucket.thinbus.srp6.js
Class SRP6JavascriptServerSessionSHA256
- java.lang.Object
-
- com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSession
-
- com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSessionSHA256
-
- All Implemented Interfaces:
Serializable
public class SRP6JavascriptServerSessionSHA256 extends SRP6JavascriptServerSession implements Serializable
Wrapper of a server session matching the Javascript client session SRP6JavascriptClientSession_N1024_SHA256. BigInteger values are communicated as hex strings. Hashing is done as string concat of hex numbers. Does not include any session timeout logic on the assumption that can be handled by web server session logic.Specification RFC 2945.
- Author:
- Simon Massey
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intHASH_BYTE_LENGTHstatic intHASH_HEX_LENGTHThis must match the expected character length of the specified algorithm i.e.static StringSHA_256-
Fields inherited from class com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSession
config, session
-
-
Constructor Summary
Constructors Constructor Description SRP6JavascriptServerSessionSHA256(String N, String g)Create a SHA-256 server session compatible with a JavaScript client session.
-
Method Summary
-
Methods inherited from class com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSession
fromDecimal, getPublicServerValue, getSalt, getServerEvidenceMessage, getSessionKey, getState, getUserID, k, step1, step2, toString
-
-
-
-
Field Detail
-
SHA_256
public static final String SHA_256
- See Also:
- Constant Field Values
-
HASH_HEX_LENGTH
public static final int HASH_HEX_LENGTH
This must match the expected character length of the specified algorithm i.e. SHA-256 is 64- See Also:
- Constant Field Values
-
HASH_BYTE_LENGTH
public static final int HASH_BYTE_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SRP6JavascriptServerSessionSHA256
public SRP6JavascriptServerSessionSHA256(String N, String g)
Create a SHA-256 server session compatible with a JavaScript client session. You can generate your own with openssl seeOpenSSLCryptoConfigConverter- Parameters:
N- The large safe prime in radix10g- The safe prime generator in radix10
-
-