|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.test.SimpleSRPServer
public class 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(String username)
Close the SRP session for the given username. |
void |
close(String username,
int sessionID)
|
SRPParameters |
getSRPParameters(String username)
Get the SRP parameters to use for this session. |
Object[] |
getSRPParameters(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(String username,
byte[] A)
Initiate the SRP algorithm. |
byte[] |
init(String username,
byte[] A,
int sessionID)
Initiate the SRP algorithm. |
byte[] |
verify(String username,
byte[] M1)
Verify the session key hash. |
byte[] |
verify(String username,
byte[] M1,
int sessionID)
|
byte[] |
verify(String username,
byte[] M1,
Object auxChallenge)
Verify the session key hash. |
byte[] |
verify(String username,
byte[] M1,
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 Object[] getSRPParameters(String username,
boolean mutipleSessions)
throws KeyException,
RemoteException
SRPServerInterface
getSRPParameters in interface SRPServerInterfaceKeyException
RemoteException
public byte[] init(String username,
byte[] A,
int sessionID)
throws SecurityException,
NoSuchAlgorithmException,
RemoteException
SRPServerInterface
init in interface SRPServerInterfaceSecurityException
NoSuchAlgorithmException
RemoteException
public byte[] verify(String username,
byte[] M1,
int sessionID)
throws SecurityException,
RemoteException
verify in interface SRPServerInterfaceSecurityException
RemoteException
public byte[] verify(String username,
byte[] M1,
Object auxChallenge)
throws SecurityException,
RemoteException
SRPServerInterface
verify in interface SRPServerInterfaceSecurityException
RemoteException
public byte[] verify(String username,
byte[] M1,
Object auxChallenge,
int sessionID)
throws SecurityException,
RemoteException
verify in interface SRPServerInterfaceSecurityException
RemoteException
public void close(String username,
int sessionID)
throws SecurityException,
RemoteException
close in interface SRPServerInterfaceSecurityException
RemoteException
public SRPParameters getSRPParameters(String username)
throws KeyException,
RemoteException
SRPServerInterface
getSRPParameters in interface SRPServerInterfaceKeyException
RemoteException
public byte[] init(String username,
byte[] A)
throws SecurityException,
NoSuchAlgorithmException,
RemoteException
SRPServerInterface
init in interface SRPServerInterfaceSecurityException
NoSuchAlgorithmException
RemoteException
public byte[] verify(String username,
byte[] M1)
throws SecurityException,
RemoteException
SRPServerInterface
verify in interface SRPServerInterfaceSecurityException
RemoteException
public void close(String username)
throws SecurityException,
RemoteException
close in interface SRPServerInterfaceSecurityException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||