Package com.bitbucket.thinbus.srp6.js
Class SRP6JavascriptServerSessionSHA1
- java.lang.Object
-
- com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSession
-
- com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSessionSHA1
-
- All Implemented Interfaces:
Serializable
public class SRP6JavascriptServerSessionSHA1 extends SRP6JavascriptServerSession implements Serializable
Wrapper of a server session matching the Javascript client session SRP6JavascriptClientSession_N256_SHA1. 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_1-
Fields inherited from class com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSession
config, session
-
-
Constructor Summary
Constructors Constructor Description SRP6JavascriptServerSessionSHA1(String N, String g)Create a SHA1 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_1
public static final String SHA_1
- 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-1 is 40- See Also:
- Constant Field Values
-
HASH_BYTE_LENGTH
public static final int HASH_BYTE_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SRP6JavascriptServerSessionSHA1
public SRP6JavascriptServerSessionSHA1(String N, String g)
Create a SHA1 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
-
-