|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coalevo.foundation.util.srp.ClientSRP
public class ClientSRP
Provides an SRP helper for SRP client side.
| Constructor Summary | |
|---|---|
ClientSRP(java.lang.String username,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
boolean |
checkServerKeyProof(java.lang.String proof)
Tests the server key proof. |
java.lang.String |
getKeyMatchProof()
Return the client key match proof. |
java.lang.String |
getPublicEphemeral()
Returns the public client ephemeral value. |
byte[] |
getSessionKey()
Returns the raw session key. |
java.lang.String |
getUsername()
Returns the username. |
boolean |
received(java.lang.String salt,
java.lang.String Bhex)
Should be called when the server returned the session init. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientSRP(java.lang.String username,
java.lang.String password)
| Method Detail |
|---|
public java.lang.String getUsername()
public java.lang.String getPublicEphemeral()
public boolean received(java.lang.String salt,
java.lang.String Bhex)
salt - the users salt.Bhex - the server public ephemeral as hex encoded BigInteger value.
public java.lang.String getKeyMatchProof()
public boolean checkServerKeyProof(java.lang.String proof)
proof - the proof received from the server.
public byte[] getSessionKey()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||