|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.SubsetCredentials issrg.pba.rbac.ExpirableCredentials
public class ExpirableCredentials
This class is intended to provide expiration service, so that any given Credentials are constrained in the time dimension. The objects can embed any Credentials, and ExpirableCredentials will perform expiration checks when intersecting the credentials.
Note that the methods call the inherited methods to ensure that the other types of Credentials are handled correctly, e.g. SetOfSubsetsCredentials are intersected correctly.
Field Summary | |
---|---|
protected Credentials |
expirable
|
protected ValidityPeriod |
when
|
Constructor Summary | |
---|---|
protected |
ExpirableCredentials()
|
|
ExpirableCredentials(Credentials expirable,
ValidityPeriod vp)
This constructor builds a credential with Validity Period. |
Method Summary | |
---|---|
java.lang.Object |
clone()
This method creates a copy of the credentials object. |
boolean |
contains(Credentials c)
This method checks if this ExpirableCredentials contains the other Credentials. |
Credentials |
getExpirable()
This method returns the Credentials embedded inside this object and associated with the ValidityPeriod. |
ValidityPeriod |
getValidityPeriod()
This method returns the ValidityPeriod associated with the embedded Credentials. |
Credentials |
intersection(Credentials c)
This method builds an intersection of this ExpirableCredentials with the given Credentials. |
java.lang.String |
toString()
|
Methods inherited from class issrg.pba.rbac.SubsetCredentials |
---|
equals, union |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Credentials expirable
protected ValidityPeriod when
Constructor Detail |
---|
protected ExpirableCredentials()
public ExpirableCredentials(Credentials expirable, ValidityPeriod vp)
expirable
- - the Credentials with which the Validity Period is
associatedvp
- - the ValidityPeriod of the Credentials; should not be nullMethod Detail |
---|
public boolean contains(Credentials c)
contains
in interface Credentials
contains
in class SubsetCredentials
c
- - the Credentials that must be contained in this one
SetOfSubsetsCredentials
public Credentials intersection(Credentials c)
intersection
in interface Credentials
intersection
in class SubsetCredentials
c
- - the Credentials to intersect with
public ValidityPeriod getValidityPeriod()
public Credentials getExpirable()
public java.lang.Object clone()
SubsetCredentials
clone
in interface Credentials
clone
in class SubsetCredentials
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 |