| Constructor and Description |
|---|
SrpUser(String username,
String password)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSessionKey()
Returns the session key.
|
boolean |
isAuthenticated()
Returns whether the user is authenticated or not.
|
byte[] |
processChallenge(byte[] byte_s,
byte[] byte_B)
Returns M1 if the challenge was successfully processed.
|
byte[] |
startAuthentication()
Computes and returns A, which is needed to start authentication.
|
void |
verifySession(byte[] host_H_AMK)
Verifies the given server proof of session key M2.
|
public byte[] getSessionKey()
null if it is not known yet.public boolean isAuthenticated()
true if the user is authenticated, false
otherwise.public byte[] processChallenge(byte[] byte_s, byte[] byte_B) throws NoSuchAlgorithmException, IOException
byte_s - Salt.byte_B - Public ephemeral value B.null if the challenge could
not be processed.IOException - If there is a problem generating any value.NoSuchAlgorithmException - If the hash algorithm to use does not
exist.public byte[] startAuthentication() throws NoSuchAlgorithmException, IOException
IOException - If there is a problem generating 'byte k' value.NoSuchAlgorithmException - If the hash algorithm to use does not
exist.public void verifySession(byte[] host_H_AMK)
host_H_AMK - Proof of session key M2.© Copyright 2014 - 2019 Digi International Inc. All rights reserved.