package org.jboss.test;
import java.io.IOException;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import org.jboss.security.Util;
import org.jboss.security.srp.SerialObjectStore;
import org.jboss.security.srp.SRPRemoteServer;
public class SRPServerImpl
{
SerialObjectStore store;
void run() throws IOException, AlreadyBoundException, RemoteException
{
store = new SerialObjectStore();
SRPRemoteServer server = new SRPRemoteServer(store);
Registry reg = LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
reg.bind("SimpleSRPServer", server);
}
public static void main(String[] args) throws Exception
{
SRPServerImpl server = new SRPServerImpl();
server.run();
}
}