com.tivoli.pd.jazn.demo
Class PDPermissionDemo

java.lang.Object
  extended bycom.tivoli.pd.jazn.demo.PDPermissionDemo

public final class PDPermissionDemo
extends java.lang.Object

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

exitString

public static final java.lang.String exitString
See Also:
Constant Field Values

configFilePrompt

public static final java.lang.String configFilePrompt
See Also:
Constant Field Values

userPrompt

public static final java.lang.String userPrompt
See Also:
Constant Field Values

userDefault

public static final java.lang.String userDefault
See Also:
Constant Field Values

passwordPrompt

public static final java.lang.String passwordPrompt
See Also:
Constant Field Values

passwordDefault

public static final java.lang.String passwordDefault
See Also:
Constant Field Values

resourcePrompt

public static final java.lang.String resourcePrompt
See Also:
Constant Field Values

resourceDefault

public static final java.lang.String resourceDefault
See Also:
Constant Field Values

actionsPrompt

public static final java.lang.String actionsPrompt
See Also:
Constant Field Values

actionsDefault

public static final java.lang.String actionsDefault
See Also:
Constant Field Values

availableActionsPrompt

public static final java.lang.String availableActionsPrompt
See Also:
Constant Field Values
Constructor Detail

PDPermissionDemo

public PDPermissionDemo()
Constructs a PDPermissionDemo object.

Method Detail

exit

public boolean exit()
Returns a boolean to indicate the demo should exit.


main

public static void main(java.lang.String[] argv)
Main program.