|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.pd.jazn.demo.PDPermissionDemo
IBM Tivoli Access Manager for e-business PDPermissionDemo class.
This class demonstrates the use of the authorization related Access Manager classes.
To use the demo you must have a configuration file. This file is the same as the one specified to the com.tivoli.pd.jcfg.SvrSslCfg configuration program.
The demo will create a PDAuthorizationContext using the configuraton data. The PDAuthorizationContext represents the application's configuration and connection to the Access Manager secure domain and the servers therein. The context is used as well to retrieve the list of valid actions in the Access Manager secure domain.
The demo will then repeatedly prompt for the user, resource, and actions to test. Each test will result in a true or false result which indicates the user's authorization to perform the specified actions on the specified resource.
You may quit the demo by specifying "quit" at any of the prompts.
Field Summary | |
---|---|
static java.lang.String |
actionsDefault
|
static java.lang.String |
actionsPrompt
|
static java.lang.String |
availableActionsPrompt
|
static java.lang.String |
configFilePrompt
|
static java.lang.String |
exitString
|
static java.lang.String |
passwordDefault
|
static java.lang.String |
passwordPrompt
|
static java.lang.String |
resourceDefault
|
static java.lang.String |
resourcePrompt
|
static java.lang.String |
userDefault
|
static java.lang.String |
userPrompt
|
Constructor Summary | |
---|---|
PDPermissionDemo()
Constructs a PDPermissionDemo object. |
Method Summary | |
---|---|
boolean |
exit()
Returns a boolean to indicate the demo should exit. |
static void |
main(java.lang.String[] argv)
Main program. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String exitString
public static final java.lang.String configFilePrompt
public static final java.lang.String userPrompt
public static final java.lang.String userDefault
public static final java.lang.String passwordPrompt
public static final java.lang.String passwordDefault
public static final java.lang.String resourcePrompt
public static final java.lang.String resourceDefault
public static final java.lang.String actionsPrompt
public static final java.lang.String actionsDefault
public static final java.lang.String availableActionsPrompt
Constructor Detail |
public PDPermissionDemo()
Method Detail |
public boolean exit()
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |