issrg.aef
Class SampleAEF1

java.lang.Object
  extended by issrg.aef.SampleAEF1

public class SampleAEF1
extends java.lang.Object

This is a sample code for the AEF.


Constructor Summary
SampleAEF1(PBAAPI pbaApi)
          The SampleAEF1 constructor which sets the PBAAPI object to be used
 
Method Summary
static void authenticate(java.security.Principal user)
          The authenticate method prints a messaage saying that the Principal user is being authenticated
 java.lang.String consult(SimplePERMISToken principal, Action action, Target target)
          The Consult method is used to make a push decision based on the text attributes provided
 java.lang.String execute(java.security.Principal user, Action action, Target target)
          The execute method is used to make a pull decision based on the certificate attributes provided
static void loadAC(VirtualRepository vr, java.lang.String filename)
          The loadAC method is used to load the AC filenames specified by the user in the virtual repositry vr and also to set up a policy finder if no XML policy has been specified
static void loadATT(VirtualRepository vr, java.lang.String filename)
          The loadATT method is used to load Text Based attributes into the virtual repositry vr as
static void loadPKC(VirtualRepository vr, java.lang.String filename)
          The loadPKC method is used to load the PKC certificate that the filename string points to into the VirtualRepositry vr
static void loadPolicy(java.lang.String filename)
          The loadPolicy method is used to load an XML policy if specified by the user it takes a virtual repositry vr and the filename of the policy to be loaded as its parameters it then creates a Simple permis Policy finder to be used by the system
static void main(java.lang.String[] args)
          The main method of sampleAEF1 program takes the either no parameters and those that are needed or the filename of a configuration file whicxh it then loads and parses.
static void print(java.lang.String s)
           
static void println(java.lang.String s)
          A method for printing string lines to the screen
static java.lang.String readLine(java.lang.String prompt)
          A method that prints a prompt string to the screen before requesting a value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleAEF1

public SampleAEF1(PBAAPI pbaApi)
The SampleAEF1 constructor which sets the PBAAPI object to be used

Parameters:
pbaApi -
Method Detail

main

public static void main(java.lang.String[] args)
The main method of sampleAEF1 program takes the either no parameters and those that are needed or the filename of a configuration file whicxh it then loads and parses. It then allows users to make decisions based on its initialisation values


loadPolicy

public static void loadPolicy(java.lang.String filename)
The loadPolicy method is used to load an XML policy if specified by the user it takes a virtual repositry vr and the filename of the policy to be loaded as its parameters it then creates a Simple permis Policy finder to be used by the system

Parameters:
vr - -
filename -

loadAC

public static void loadAC(VirtualRepository vr,
                          java.lang.String filename)
The loadAC method is used to load the AC filenames specified by the user in the virtual repositry vr and also to set up a policy finder if no XML policy has been specified

Parameters:
vr -
filename -

loadATT

public static void loadATT(VirtualRepository vr,
                           java.lang.String filename)
The loadATT method is used to load Text Based attributes into the virtual repositry vr as

Parameters:
vr -
filename -

loadPKC

public static void loadPKC(VirtualRepository vr,
                           java.lang.String filename)
The loadPKC method is used to load the PKC certificate that the filename string points to into the VirtualRepositry vr

Parameters:
vr -
filename -

readLine

public static java.lang.String readLine(java.lang.String prompt)
A method that prints a prompt string to the screen before requesting a value

Parameters:
prompt -
Returns:

println

public static void println(java.lang.String s)
A method for printing string lines to the screen

Parameters:
s -

print

public static void print(java.lang.String s)

consult

public java.lang.String consult(SimplePERMISToken principal,
                                Action action,
                                Target target)
The Consult method is used to make a push decision based on the text attributes provided

Parameters:
principal -
action -
target -
Returns:

execute

public java.lang.String execute(java.security.Principal user,
                                Action action,
                                Target target)
The execute method is used to make a pull decision based on the certificate attributes provided

Parameters:
user -
action -
target -
Returns:

authenticate

public static void authenticate(java.security.Principal user)
The authenticate method prints a messaage saying that the Principal user is being authenticated

Parameters:
user -