issrg.pba.rbac.policies
Class SimpleEntry

java.lang.Object
  extended by issrg.pba.repository.EntryLocator
      extended by issrg.pba.rbac.policies.SimpleEntry
All Implemented Interfaces:
Entry, TokenLocator

public class SimpleEntry
extends EntryLocator
implements Entry

This class is a simple implementation of an Entry that locates the tokens in the entry named by the Principal. More complex implementations may separate TokenLocator from Entry Name.

Entry name is used to match domains in the policy, whilst the TokenLocator is used to retrieve Authorisation Tokens from repositories. There is only one Entry per Authorisation entity, but there may be multiple TokenLocators.

Author:
A.Otenko

Field Summary
 
Fields inherited from class issrg.pba.repository.EntryLocator
a, ar, e, p
 
Constructor Summary
SimpleEntry(java.security.Principal entryName)
          This constructor builds a SimpleEntry that uses the same Principal to match the policy and locate tokens in the repository.
 
Method Summary
 java.security.Principal getEntryName()
          This method uses the primary Token Locator as the Entry name.
 
Methods inherited from class issrg.pba.repository.EntryLocator
getAlternativeLocator, getEntry, getLocator, getRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEntry

public SimpleEntry(java.security.Principal entryName)
This constructor builds a SimpleEntry that uses the same Principal to match the policy and locate tokens in the repository.

Parameters:
entryName - - the name of the Entry, and the locator of the authorisation tokens.
Method Detail

getEntryName

public java.security.Principal getEntryName()
This method uses the primary Token Locator as the Entry name. It is equivalent to calling getLocator() on this object, so careful when overriding the method.

Specified by:
getEntryName in interface Entry
Returns:
Principal naming the entry; cannot be null