|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jasig.cas.client.tomcat.AssertionCasRealmDelegate
public class AssertionCasRealmDelegate
CasRealm implementation with prinicpal and role data backed by the Assertion.
In particular, an AttributePrincipal is expected from which the values of
the role attribute are retrieved. The default role attribute name is "role",
but this can be customized via setRoleAttributeName(String).
Authentication always succeeds and simply returns the given principal.
| Field Summary | |
|---|---|
static String |
DEFAULT_ROLE_NAME
Default role attribute name |
| Constructor Summary | |
|---|---|
AssertionCasRealmDelegate()
|
|
| 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 |
setRoleAttributeName(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_ROLE_NAME
| Constructor Detail |
|---|
public AssertionCasRealmDelegate()
| Method Detail |
|---|
public void setRoleAttributeName(String name)
name - Name of the attribute in the principal that contains role data.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 | ||||||||