| java.rmi.server.UnicastRemoteObject org.jboss.security.srp.SRPRemoteServer
Method Summary | |
public void | addSRPServerListener(SRPServerListener listener) | public void | close(String username) Close the SRP session for the given username. | public void | close(String username, int sessionID) | public boolean | getRequireAuxChallenge() | public SRPParameters | getSRPParameters(String username) The start of a new client session. | public Object[] | getSRPParameters(String username, boolean multipleSessions) | public byte[] | init(String username, byte[] A) | public byte[] | init(String username, byte[] A, int sessionID) | public void | removeSRPServerListener(SRPServerListener listener) | public void | setRequireAuxChallenge(boolean flag) | public void | setVerifierStore(SRPVerifierStore verifierStore) | public byte[] | verify(String username, byte[] M1) | public byte[] | verify(String username, byte[] M1, int sessionID) | public byte[] | verify(String username, byte[] M1, Object auxChallenge) Verify the session key hash. | public byte[] | verify(String username, byte[] M1, Object auxChallenge, int sessionID) |
getRequireAuxChallenge | public boolean getRequireAuxChallenge()(Code) | | |
setRequireAuxChallenge | public void setRequireAuxChallenge(boolean flag)(Code) | | |
verify | public byte[] verify(String username, byte[] M1, Object auxChallenge) throws SecurityException, RemoteException(Code) | | Verify the session key hash. The client sends their username and M1
hash to validate completion of the SRP handshake.
Parameters: username - - the user ID by which the client is known. This is repeated to simplifythe server session management. Parameters: M1 - - the client hash of the session key; M1 = H(H(N) xor H(g) | H(U) | A | B | K) Parameters: auxChallenge - - an arbitrary addition data item that my be used as an additionalchallenge. One example usage would be to send a hardware generated token that was encryptedwith the session private key for validation by the server. M2, the server hash of the client challenge; M2 = H(A | M1 | K) throws: SecurityException - thrown if M1 cannot be verified by the server throws: RemoteException - thrown by remote implementations |
|
|