org.openpermis
Interface Subject

All Superinterfaces:
Identifiable
All Known Subinterfaces:
Authority, AuthorityBean
All Known Implementing Classes:
BasicAuthority, InternalSubject

public interface Subject
extends Identifiable

A subject is an entity that requests access to resources.

Since:
0.1.0

Method Summary
 Set<Role> getAssignedRoles(TimeStamp timeStamp, Set<Role> roles)
          Returns a subset of all roles held by this subject at the current time.
 Set<Subject> getIssuersOf(Role role)
          Returns the subjects who issued the role to this.
 TimePeriod getValidityOf(Role role, Subject issuer)
          Returns the TimePeriod of the specific role assignment consisting of issuer and role.
 
Methods inherited from interface org.openpermis.policy.Identifiable
getIdentity
 

Method Detail

getAssignedRoles

Set<Role> getAssignedRoles(TimeStamp timeStamp,
                           Set<Role> roles)
Returns a subset of all roles held by this subject at the current time.

Parameters:
timeStamp - the current time, a TimeStamp.
roles - a set of Roles.
Returns:
a subset of roles containing only those roles that have been assigned to this subject.
Since:
0.3.0

getIssuersOf

Set<Subject> getIssuersOf(Role role)
Returns the subjects who issued the role to this.

Parameters:
role - a Role. The subject assumes that it previously confirmed with getAssignedRoles(TimeStamp, Set) to have this role.
Returns:
the subjects who issued the role to this.
Since:
0.3.0

getValidityOf

TimePeriod getValidityOf(Role role,
                         Subject issuer)
Returns the TimePeriod of the specific role assignment consisting of issuer and role.

Parameters:
role - a Role that was assigned.
issuer - a Subject that assigned the role.
Returns:
the TimePeriod of the specific role assignment consisting of issuer and role.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG