|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.securityfilter.realm.SimpleSecurityRealmBase
Security realm base class. This class insulates you from having to create or process Principal objects. You can implement a realm by overriding the two methods that neither take or return a Principal object and this class does the conversions for you.
| Constructor Summary | |
SimpleSecurityRealmBase()
|
|
| Method Summary | |
Principal |
authenticate(String username,
String password)
Authenticate a user. |
boolean |
booleanAuthenticate(String username,
String password)
Authenticate a user. |
boolean |
isUserInRole(Principal principal,
String rolename)
Test for role membership. |
boolean |
isUserInRole(String username,
String rolename)
Test for role membership. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleSecurityRealmBase()
| Method Detail |
public boolean booleanAuthenticate(String username,
String password)
username - a usernamepassword - a plain text password, as entered by the user
public boolean isUserInRole(String username,
String rolename)
username - a usernamerolename - name of a role to test for membership
public Principal authenticate(String username,
String password)
authenticate in interface SecurityRealmInterfaceusername - a usernamepassword - a plain text password, as entered by the user
public boolean isUserInRole(Principal principal,
String rolename)
isUserInRole in interface SecurityRealmInterfaceprincipal - Principal object representing a userrolename - name of a role to test for membership
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||