|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.impl.Credential
public class Credential
A credential assigns a set of Roles to an Accreditable.
| Constructor Summary | |
|---|---|
Credential(Accreditable accreditable)
Creates a new credential object. |
|
| Method Summary | |
|---|---|
void |
addRole(Role role)
Adds a role to this credential. |
boolean |
contains(Role role)
Returns if a role is contained. |
Accreditable |
getAccreditable()
Returns the accreditable of this credential. |
Role[] |
getRoles()
Returns all roles of this credential. |
boolean |
isEmpty()
Returns if the credential is empty (contains no roles). |
void |
removeRole(Role role)
Removes a role from this credential. |
protected void |
setAccreditable(Accreditable accreditable)
Sets the accreditable for this credential. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Credential(Accreditable accreditable)
accreditable - The accreditable.| Method Detail |
|---|
protected void setAccreditable(Accreditable accreditable)
accreditable - The accreditable.public Role[] getRoles()
public void addRole(Role role)
role - The role to add.public void removeRole(Role role)
role - The role to remove.public Accreditable getAccreditable()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean contains(Role role)
role - A role.
public boolean isEmpty()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||