issrg.pba.rbac
Interface RoleBasedAuthTokenParser

All Superinterfaces:
AuthTokenParser
All Known Implementing Classes:
RoleBasedACParser, SimplePERMISTokenParser

public interface RoleBasedAuthTokenParser
extends AuthTokenParser

This is the interface to the Role Based parser of Authorisation Tokens. The setRoleHierarchy method should be called before parsing can be performed, because the object will surely need the policy to at least verify that the roles extracted from the token, are defined.


Method Summary
 void setRoleHierarchy(RoleHierarchyPolicy rhp)
          Sets the Role Hierarchy Policy.
 
Methods inherited from interface issrg.pba.AuthTokenParser
decode, getAuthTokenParsingRules, getSignatureVerifier, setAuthTokenParsingRules, setSignatureVerifier
 

Method Detail

setRoleHierarchy

public void setRoleHierarchy(RoleHierarchyPolicy rhp)
Sets the Role Hierarchy Policy. The policy defines the types of the roles, the values of the roles of each type, and the hierarchical relationship between them.

Parameters:
rhp - is a reference to the Role Hierarchy