1 22 package org.jboss.security.srp; 23 24 import java.rmi.RemoteException ; 25 import java.security.KeyException ; 26 import java.security.NoSuchAlgorithmException ; 27 28 43 public interface SRPServerInterface 44 { 45 49 public SRPParameters getSRPParameters(String username) throws KeyException , RemoteException ; 50 58 public Object [] getSRPParameters(String username, boolean mutipleSessions) 59 throws KeyException , RemoteException ; 60 61 69 public byte[] init(String username, byte[] A) throws SecurityException , 70 NoSuchAlgorithmException , RemoteException ; 71 81 public byte[] init(String username, byte[] A, int sessionID) throws SecurityException , 82 NoSuchAlgorithmException , RemoteException ; 83 84 94 public byte[] verify(String username, byte[] M1) throws SecurityException , RemoteException ; 95 public byte[] verify(String username, byte[] M1, int sessionID) 96 throws SecurityException , RemoteException ; 97 98 111 public byte[] verify(String username, byte[] M1, Object auxChallenge) 112 throws SecurityException , RemoteException ; 113 public byte[] verify(String username, byte[] M1, Object auxChallenge, int sessionID) 114 throws SecurityException , RemoteException ; 115 116 118 public void close(String username) throws SecurityException , RemoteException ; 119 public void close(String username, int sessionID) throws SecurityException , RemoteException ; 120 } 121 | Popular Tags |