authorization
Class Constants

java.lang.Object
  extended by authorization.Constants

public class Constants
extends java.lang.Object

Define common constants used in the associated event handlers.


Field Summary
static java.lang.String Authorizations
          Shared model hash map key for the authentication and authorization data.
private static java.lang.String[][] capabilities
          The name of a capability is the name of a table procedure.
static java.lang.String Forbidden
          Error message if client not authorized to perform an action.
static java.lang.String HostCredentials
          Shared model hash map key for host credential data.
private static java.lang.String[] hostPassword
          Host passwords to be used ordered by client user name.
private static java.lang.String[] hostUserName
          Host user names to be used by client user name.
static java.lang.String MV_password
          Name of model variable which holds host password.
static java.lang.String MV_userID
          Name of model variable which holds host user name.
static java.lang.String NotInitialized
          Error message if event handler not initialized properly.
private static java.lang.String[] passwords
          Client passwords by client user name.
private static java.lang.String[] users
          User names of authorized clients for this application.
 
Constructor Summary
Constants()
           
 
Method Summary
static IUserAuthorizer getDefaultAuthorizations()
          Create default set of client credentials and capabilities for testing.
static IHostCredentialMap getDefaultHostCredentials()
          Create default set of host credentials for testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Authorizations

public static final java.lang.String Authorizations
Shared model hash map key for the authentication and authorization data.

See Also:
Constant Field Values

HostCredentials

public static final java.lang.String HostCredentials
Shared model hash map key for host credential data.

See Also:
Constant Field Values

NotInitialized

public static final java.lang.String NotInitialized
Error message if event handler not initialized properly.

See Also:
Constant Field Values

Forbidden

public static final java.lang.String Forbidden
Error message if client not authorized to perform an action.

See Also:
Constant Field Values

MV_userID

public static final java.lang.String MV_userID
Name of model variable which holds host user name.

See Also:
Constant Field Values

MV_password

public static final java.lang.String MV_password
Name of model variable which holds host password.

See Also:
Constant Field Values

users

private static java.lang.String[] users
User names of authorized clients for this application.


passwords

private static java.lang.String[] passwords
Client passwords by client user name.


capabilities

private static java.lang.String[][] capabilities

The name of a capability is the name of a table procedure. A user who has a capability of a particular name is authorized to call a table procedure with that name. A single user can many capabilities.


hostUserName

private static java.lang.String[] hostUserName
Host user names to be used by client user name.

This is a contrived example. In a real application these would be different. (And read from a database or directory server.)


hostPassword

private static java.lang.String[] hostPassword
Host passwords to be used ordered by client user name.

This is a contrived example. In a real application these would be different. (And read from a database or directory server.)

Constructor Detail

Constants

public Constants()
Method Detail

getDefaultAuthorizations

public static IUserAuthorizer getDefaultAuthorizations()
Create default set of client credentials and capabilities for testing.

Returns:
default capabilities object.

getDefaultHostCredentials

public static IHostCredentialMap getDefaultHostCredentials()
Create default set of host credentials for testing.

Returns:
default host credential map object