Class Overview
Implements the server side SRP-6a protocol. Note that this class is stateful, and therefore NOT threadsafe.
This implementation of SRP is based on the optimized message sequence put forth by Thomas Wu in the paper
"SRP-6: Improvements and Refinements to the Secure Remote Password Protocol, 2002"
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
Public Methods
Processes the client's credentials. If valid the shared secret is generated and returned.
Parameters
clientA
| The client's credentials |
Returns
- A shared secret BigInteger
public
BigInteger
generateServerCredentials
()
Generates the server's credentials that are to be sent to the client.
Returns
- The server's public value to the client
Initialises the server to accept a new client authentication attempt
Parameters
N
| The safe prime associated with the client's verifier |
g
| The group parameter associated with the client's verifier |
v
| The client's verifier |
digest
| The digest algorithm associated with the client's verifier |
random
| For key generation
|
Protected Methods