|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.ac.impl.CredentialImpl
public class CredentialImpl
Credential implementation.
Field Summary |
---|
Fields inherited from interface org.apache.lenya.ac.Credential |
---|
DENY, GRANT |
Constructor Summary | |
---|---|
CredentialImpl(org.apache.lenya.ac.Accreditable accreditable,
org.apache.lenya.ac.Role role)
Creates a new credential object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
org.apache.lenya.ac.Accreditable |
getAccreditable()
Returns the accreditable of this credential. |
java.lang.String |
getMethod()
|
org.apache.lenya.ac.Role |
getRole()
Returns the role of this credential. |
int |
hashCode()
|
boolean |
isDenied()
|
boolean |
isGranted()
|
void |
setMethod(java.lang.String method)
Set the method of the credential, grant or deny |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CredentialImpl(org.apache.lenya.ac.Accreditable accreditable, org.apache.lenya.ac.Role role)
accreditable
- The accreditable.role
- The role.Method Detail |
---|
public org.apache.lenya.ac.Role getRole()
getRole
in interface org.apache.lenya.ac.Credential
public org.apache.lenya.ac.Accreditable getAccreditable()
getAccreditable
in interface org.apache.lenya.ac.Credential
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void setMethod(java.lang.String method)
method
- A string grant or denypublic java.lang.String getMethod()
getMethod
in interface org.apache.lenya.ac.Credential
public boolean isGranted()
Credential.GRANT
.public boolean isDenied()
Credential.DENY
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |