Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. wiser = new Wiser();
  2. UsernamePasswordValidator validator = new MyValidator();
  3. EasyAuthenticationHandlerFactory authenticator = new EasyAuthenticationHandlerFactory(validator);
  4. wiser.getServer().setAuthenticationHandlerFactory(authenticator );
  5. wiser.setPort(25);
  6. wiser.start();
Add Comment
Please, Sign In to add comment