diff options
author | cyBerta <richy@cyborgsociety.org> | 2013-12-20 20:25:48 +0100 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-12-20 20:25:48 +0100 |
commit | 31e0ee7819ff6e852bc40f66858f0ac02659bf04 (patch) | |
tree | 85969d750a2473a95603e07f256681ca46c746cd /src/se/leap/bitmaskclient/LeapSRPSession.java | |
parent | 8bc035e5785b8a14c26cdb6ab409242b66554992 (diff) | |
parent | c500f60c9188c938b550b8741ca9a4f4939429e4 (diff) |
Merge branch 'feature/token-based-auth' into develop
Conflicts:
src/se/leap/bitmaskclient/ConfigurationWizard.java
src/se/leap/bitmaskclient/Dashboard.java
src/se/leap/bitmaskclient/ProviderAPI.java
src/se/leap/bitmaskclient/ProviderListFragment.java
Diffstat (limited to 'src/se/leap/bitmaskclient/LeapSRPSession.java')
-rw-r--r-- | src/se/leap/bitmaskclient/LeapSRPSession.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/LeapSRPSession.java b/src/se/leap/bitmaskclient/LeapSRPSession.java index 14a8bff2..0849f777 100644 --- a/src/se/leap/bitmaskclient/LeapSRPSession.java +++ b/src/se/leap/bitmaskclient/LeapSRPSession.java @@ -35,9 +35,12 @@ import org.jboss.security.srp.SRPParameters; */ public class LeapSRPSession { + private static String token = ""; + final public static String SALT = "salt"; final public static String M1 = "M1"; final public static String M2 = "M2"; + final public static String TOKEN = "token"; private SRPParameters params; private String username; @@ -312,6 +315,14 @@ public class LeapSRPSession { boolean valid = Arrays.equals(M2, myM2); return valid; } + + protected static void setToken(String token) { + LeapSRPSession.token = token; + } + + protected static String getToken() { + return token; + } /** * @return a new SHA-256 digest. |