org.openpermis.policy
Class AuthorizedRoles

java.lang.Object
  extended by org.openpermis.policy.AuthorizedRoles

public final class AuthorizedRoles
extends Object

All roles that are needed for requested access and the according obligations that must be fulfilled.

Since:
0.3.0

Field Summary
private  ObligationCollection obligations
           
private  Set<Role> roles
           
 
Constructor Summary
AuthorizedRoles(Set<Role> roles, ObligationCollection obligations)
          Creates a new authorized roles.
 
Method Summary
 Set<String> getObligations()
          Returns the set of obligations for this authorized roles.
 Set<Role> getRoles()
          Returns the authorized roles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

roles

private Set<Role> roles

obligations

private ObligationCollection obligations
Constructor Detail

AuthorizedRoles

public AuthorizedRoles(Set<Role> roles,
                       ObligationCollection obligations)
Creates a new authorized roles.

Parameters:
roles - a Set of Roles.
obligations - an ObligationCollection.
Method Detail

getRoles

public Set<Role> getRoles()
Returns the authorized roles.

Returns:
the authorized roles.
Since:
0.3.0

getObligations

public Set<String> getObligations()
Returns the set of obligations for this authorized roles.

Returns:
the set of obligations for this authorized roles.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG