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

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.
 boolean match(Set<Role> verifiedRoles)
          Check if verified roles specified contain all roles of this authorized roles object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizedRoles

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

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

match

public boolean match(Set<Role> verifiedRoles)
Check if verified roles specified contain all roles of this authorized roles object.

Parameters:
verifiedRoles - the verified roles to match.
Returns:
true if the verified roles contain all roles of this object, false otherwise.
Since:
0.4.0

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.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG