|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jasig.cas.client.tomcat.PropertiesCasRealmDelegate
public class PropertiesCasRealmDelegate
CasRealm implementation with users and roles defined by a properties
file with the following format:
username1=role1,role2,role3 username2=role1 username3=role2,role3User authentication succeeds if the name of the given principal exists as a username in the properties file.
| Constructor Summary | |
|---|---|
PropertiesCasRealmDelegate()
|
|
| Method Summary | |
|---|---|
Principal |
authenticate(Principal p)
Authenticates the given principal. |
String[] |
getRoles(Principal p)
Gets the roles defined for the given principal. |
boolean |
hasRole(Principal principal,
String role)
Determines whether the given principal possesses the given role. |
void |
readProperties()
|
void |
setPropertiesFilePath(String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesCasRealmDelegate()
| Method Detail |
|---|
public void setPropertiesFilePath(String path)
path - Path to properties file container username/role data.public void readProperties()
public Principal authenticate(Principal p)
authenticate in interface CasRealmp - Principal to authenticate.
public String[] getRoles(Principal p)
getRoles in interface CasRealmp - the principal to retrieve the roles for.
public boolean hasRole(Principal principal,
String role)
hasRole in interface CasRealmprincipal - Principal to evaluate.role - Role to test for possession.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||