|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.SubsetCredentials
public abstract class SubsetCredentials
This abstract class defines some basic behaviour, taking into account that a SetOfSubsets class exists.
Constructor Summary | |
---|---|
protected |
SubsetCredentials()
|
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
This method creates a copy of the credentials object. |
boolean |
contains(Credentials cred)
This method tells if the given set of credentials is contained within this credentials object. |
boolean |
equals(java.lang.Object cred)
This method compares two credentials for equality. |
Credentials |
intersection(Credentials cred)
This method implements the basic intersection rule: the intersection is the biggest common part. |
Credentials |
union(Credentials cred)
This method implements the default behaviour for the union operation: the union is the smallest set containing both objects. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SubsetCredentials()
Method Detail |
---|
public boolean contains(Credentials cred)
partOf
method. All of the subclasses should call this method,
if they do not handle a SetOfSubsetsCredentials.
contains
in interface Credentials
cred
- is the credential to compare
SetOfSubsetsCredentials
public boolean equals(java.lang.Object cred)
contains(cred) && cred.contains(this)
,
if cred is a credentials object. The result is always false if cred is not a Credentials object.
equals
in class java.lang.Object
cred
- is the object to compare withpublic Credentials intersection(Credentials cred)
intersection
in interface Credentials
cred
- is the credential to intersect with
public Credentials union(Credentials cred)
union
in interface Credentials
cred
- is the credentials object to join with
public abstract java.lang.Object clone()
clone
in interface Credentials
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |