|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauthorization.Constants
public class Constants
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 |
---|
public static final java.lang.String Authorizations
public static final java.lang.String HostCredentials
public static final java.lang.String NotInitialized
public static final java.lang.String Forbidden
public static final java.lang.String MV_userID
public static final java.lang.String MV_password
private static java.lang.String[] users
private static java.lang.String[] passwords
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.
private static java.lang.String[] hostUserName
This is a contrived example. In a real application these would be different. (And read from a database or directory server.)
private static java.lang.String[] hostPassword
This is a contrived example. In a real application these would be different. (And read from a database or directory server.)
Constructor Detail |
---|
public Constants()
Method Detail |
---|
public static IUserAuthorizer getDefaultAuthorizations()
public static IHostCredentialMap getDefaultHostCredentials()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |