|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface describing the message exchange of the SRP protocol as described in RFC2945. This is an RMI compatible interface in that all methods declare that they throw a RemoteException, but it does not extend from java.rmi.Remote so that it cannot be used in place of a Remote object. For an RMI interface see the SRPRemoteServerInterface. There are two versions of each method. One that takes an arbitrary session number and one that does not. The session number form allows a user to maintain mutiple SRP sessions.
SRPRemoteServerInterface
(src) 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)
|
Method Detail |
public SRPParameters (src) getSRPParameters(java.lang.String username) throws java.security.KeyException, java.rmi.RemoteException
java.security.KeyException
java.rmi.RemoteException
public java.lang.Object[] getSRPParameters(java.lang.String username, boolean mutipleSessions) throws java.security.KeyException, java.rmi.RemoteException
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
KeyException,
- thrown if the username is not known by the server.
RemoteException,
- thrown by remote implementations
java.lang.SecurityException
java.security.NoSuchAlgorithmException
java.rmi.RemoteException
public byte[] init(java.lang.String username, byte[] A, int sessionID) throws java.lang.SecurityException, java.security.NoSuchAlgorithmException, java.rmi.RemoteException
KeyException,
- thrown if the username is not known by the server.
RemoteException,
- thrown by remote implementations
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
SecurityException,
- thrown if M1 cannot be verified by the server
RemoteException,
- thrown by remote implementations
java.lang.SecurityException
java.rmi.RemoteException
public byte[] verify(java.lang.String username, byte[] M1, int sessionID) throws java.lang.SecurityException, java.rmi.RemoteException
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
SecurityException,
- thrown if M1 cannot be verified by the server
RemoteException,
- thrown by remote implementations
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
java.lang.SecurityException
java.rmi.RemoteException
public void close(java.lang.String username) throws java.lang.SecurityException, java.rmi.RemoteException
java.lang.SecurityException
java.rmi.RemoteException
public void close(java.lang.String username, int sessionID) throws java.lang.SecurityException, java.rmi.RemoteException
java.lang.SecurityException
java.rmi.RemoteException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |