All Examples This Package
java.lang.Object | +----examples.security.rdbmsrealm.CachingRealm
Note that the functions from the ListableRealm interface return null unless the underlying realm implements ListableRealm itself. These functions do not use the cache because we cannot know how complete its information is.
A CachingRealm is configured through a class resource composed of the realm's name with the suffix .properties. The property values for userCacheSize, groupCacheSize, aclCacheSize, and permissionCacheSize can override the defaults of 20, 10, 20, and 0 for the respective cache sizes, and cachedRealmImpl can override the default examples.security.rdbmsrealm.RdbmsRealm for the class of the underlying realm implementation.
public static final String USER_CACHE_SIZE
public static final String GROUP_CACHE_SIZE
public static final String ACL_CACHE_SIZE
public static final String PERM_CACHE_SIZE
public static final String REALM_IMPL
public static final String REALM_IMPL_DFLT
public CachingRealm()
public static void main(String argv[]) throws Exception
public String getStatistics()
public void init(String name, Object ownerCredential) throws NotOwnerException
public String getName()
public User getUser(String name)
public User getUser(UserInfo userInfo)
public Principal getAclOwner(Object credential)
public Group getGroup(String name)
public Acl getAcl(String name)
public Acl getAcl(String name, char separator)
public Permission getPermission(String name)
public void load(String name, Object credential) throws ClassNotFoundException, IOException, NotOwnerException
public void save(String name) throws IOException
public Enumeration getUsers()
public Enumeration getGroups()
public Enumeration getAcls()
public Enumeration getPermissions()
All Examples This Package