|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.SetOfSubsetsCredentials
public class SetOfSubsetsCredentials
This class implements the Credentials interface, as needed for representing the set of subsets.
The object can contain a set of any credentials and tell if it contains other credentials and build unions and intersections with other credentials.
Constructor Summary | |
---|---|
SetOfSubsetsCredentials()
This constructor creates an object with no credentials: an empty set of credentials. |
|
SetOfSubsetsCredentials(Credentials[] Creds)
This constructor builds a Credential object from an array of Credentials. |
|
SetOfSubsetsCredentials(java.util.Vector creds)
This constructor also builds the set from the given array of credentials, but the array of credentials is supplied as a vector. |
Method Summary | |
---|---|
java.lang.Object |
clone()
This method creates a copy of this credentials set. |
boolean |
contains(Credentials subSet)
This method checks to see if the given set of credentials is contained in this object. |
boolean |
equals(Credentials creds)
This method checks to see if the supplied credentials (roles) are equal to the credentials contained in this object. |
boolean |
equals(java.lang.Object o)
This method compares this credentials object to another object. |
java.util.Vector |
getValue()
This method returns the set of credentials |
Credentials |
intersection(Credentials set)
This method builds an intersection of this credentials set with another set. |
boolean |
partOf(Credentials superSet)
This method tells if this set of subsets is a part of the given credentials object. |
java.lang.String |
toString()
|
Credentials |
union(Credentials set)
This method returns a union of this credential set with another one. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetOfSubsetsCredentials()
public SetOfSubsetsCredentials(Credentials[] Creds)
Creds
- is the array of credentials to be contained in this setpublic SetOfSubsetsCredentials(java.util.Vector creds)
creds
- is the Vector of Credential objects to be included in the setMethod Detail |
---|
public java.util.Vector getValue()
public boolean contains(Credentials subSet)
contains
in interface Credentials
subSet
- the credentials object (even a set of subsets) that must be a
sub-set
of this object
subSet
is fully contained within this object;
false, otherwisepublic boolean partOf(Credentials superSet)
superSet
- is the credentials object that must be a superset of
this set
public boolean equals(Credentials creds)
creds
- is the credentials object to compare to
public boolean equals(java.lang.Object o)
equals(Credentials)
.
equals
in class java.lang.Object
o
- is the object to compare to
equals(Credentials)
public java.lang.Object clone()
clone
in interface Credentials
clone
in class java.lang.Object
public Credentials intersection(Credentials set)
The method just intersects each component of the stored set with the given set and collects the result in a credentials object.
intersection
in interface Credentials
set
- is the set of credentials to intersect with
public Credentials union(Credentials set)
It just collects all the credentials from the given set that are not contained in any of the elements of the other set.
union
in interface Credentials
set
- is the set to join with
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |