|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.aef.SampleAEF1
public class SampleAEF1
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 |
---|
public SampleAEF1(PBAAPI pbaApi)
pbaApi
- Method Detail |
---|
public static void main(java.lang.String[] args)
public static void loadPolicy(java.lang.String filename)
vr
- -filename
- public static void loadAC(VirtualRepository vr, java.lang.String filename)
vr
- filename
- public static void loadATT(VirtualRepository vr, java.lang.String filename)
vr
- filename
- public static void loadPKC(VirtualRepository vr, java.lang.String filename)
vr
- filename
- public static java.lang.String readLine(java.lang.String prompt)
prompt
-
public static void println(java.lang.String s)
s
- public static void print(java.lang.String s)
public java.lang.String consult(SimplePERMISToken principal, Action action, Target target)
principal
- action
- target
-
public java.lang.String execute(java.security.Principal user, Action action, Target target)
user
- action
- target
-
public static void authenticate(java.security.Principal user)
user
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |