|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.SimpleSRPServer
A simple hard coded implementation of SRPServerInterface that validates any given username to the password and salt provided to its constructor.
Method Summary | |
void |
close(java.lang.String username)
Close the SRP session for the given username. |
void |
close(java.lang.String username,
int sessionID)
|
SRPParameters (src) |
getSRPParameters(java.lang.String username)
Get the SRP parameters to use for this session. |
java.lang.Object[] |
getSRPParameters(java.lang.String username,
boolean mutipleSessions)
Get the SRP parameters to use for this session and create an arbitrary session id to allow for multiple SRP sessions for this user. |
byte[] |
init(java.lang.String username,
byte[] A)
Initiate the SRP algorithm. |
byte[] |
init(java.lang.String username,
byte[] A,
int sessionID)
Initiate the SRP algorithm. |
byte[] |
verify(java.lang.String username,
byte[] M1)
Verify the session key hash. |
byte[] |
verify(java.lang.String username,
byte[] M1,
int sessionID)
|
byte[] |
verify(java.lang.String username,
byte[] M1,
java.lang.Object auxChallenge)
Verify the session key hash. |
byte[] |
verify(java.lang.String username,
byte[] M1,
java.lang.Object auxChallenge,
int sessionID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object[] getSRPParameters(java.lang.String username, boolean mutipleSessions) throws java.security.KeyException, java.rmi.RemoteException
SRPServerInterface (src)
getSRPParameters
in interface SRPServerInterface (src)
java.security.KeyException
java.rmi.RemoteException
public byte[] init(java.lang.String username, byte[] A, int sessionID) throws java.lang.SecurityException, java.security.NoSuchAlgorithmException, java.rmi.RemoteException
SRPServerInterface (src)
init
in interface SRPServerInterface (src)
java.lang.SecurityException
java.security.NoSuchAlgorithmException
java.rmi.RemoteException
public byte[] verify(java.lang.String username, byte[] M1, int sessionID) throws java.lang.SecurityException, java.rmi.RemoteException
verify
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
public byte[] verify(java.lang.String username, byte[] M1, java.lang.Object auxChallenge) throws java.lang.SecurityException, java.rmi.RemoteException
SRPServerInterface (src)
verify
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
public byte[] verify(java.lang.String username, byte[] M1, java.lang.Object auxChallenge, int sessionID) throws java.lang.SecurityException, java.rmi.RemoteException
verify
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
public void close(java.lang.String username, int sessionID) throws java.lang.SecurityException, java.rmi.RemoteException
close
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
public SRPParameters (src) getSRPParameters(java.lang.String username) throws java.security.KeyException, java.rmi.RemoteException
SRPServerInterface (src)
getSRPParameters
in interface SRPServerInterface (src)
java.security.KeyException
java.rmi.RemoteException
public byte[] init(java.lang.String username, byte[] A) throws java.lang.SecurityException, java.security.NoSuchAlgorithmException, java.rmi.RemoteException
SRPServerInterface (src)
init
in interface SRPServerInterface (src)
java.lang.SecurityException
java.security.NoSuchAlgorithmException
java.rmi.RemoteException
public byte[] verify(java.lang.String username, byte[] M1) throws java.lang.SecurityException, java.rmi.RemoteException
SRPServerInterface (src)
verify
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
public void close(java.lang.String username) throws java.lang.SecurityException, java.rmi.RemoteException
close
in interface SRPServerInterface (src)
java.lang.SecurityException
java.rmi.RemoteException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |