1 16 package org.mortbay.http; 17 import java.security.Principal ; 18 19 20 31 public interface UserRealm 32 { 33 34 public String getName(); 35 36 37 40 public Principal getPrincipal(String username); 41 42 43 57 public Principal authenticate(String username,Object credentials,HttpRequest request); 58 59 60 71 public boolean reauthenticate(Principal user); 72 73 74 78 public boolean isUserInRole(Principal user, String role); 79 80 81 89 public void disassociate(Principal user); 90 91 92 99 public Principal pushRole(Principal user, String role); 100 101 102 103 108 public Principal popRole(Principal user); 109 110 111 115 public void logout(Principal user); 116 117 } 118 | Popular Tags |