|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.implementations.services.eas.AuthManager
The AuthManager class provides convenience methods for user authentication and authorization. It works with the EnterpriseApplicationService to validate and create Enterprise and Application Session objects using the OpenEAI foundation.
This object can be used by many differnt types of web development technologies. For example, Servlets and JSP.
Configuration Parameters:
These are the configuration parameters required by the AuthManager component. These are specified in a single Deployment document for the AuthManager component. Applications wishing to use this component need only create a standard OpenEAI Application Properties object and pass that properties object to the constructor of this class. This Properties object contains all the information necessary for the AuthManager component to initialize itself with its deployment document (providerUrl, initialContextFactory, securityPrincipal, securityCredentials, configDocName, messageComponentName).
| Name | Required | Description |
|---|---|---|
| ProducerConfig | yes | A PointToPoint Producer pool that the AuthManager uses to interact with the EnterpriseApplicationService. This producers should be named "AppServiceProducer" and should be configured so that it will produce requests to the queue onwhich the EnterpriseApplicationService is listening. |
| MessageObjectConfigs | yes | Six (6) MessageObjects are required by the AuthManager. They are:
|
AppConfig,
MessageObjectConfig,
ProducerConfig| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
AuthManager()
|
|
AuthManager(java.util.Properties props)
Takes the Properties object passed in and instantiates an AppConfig object that will be used by this AuthManager object to interact with the EnterpriseApplicationService. |
|
| Method Summary | |
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession |
createApplicationSession(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseSession entSession)
Creates an ApplicationSession object in the EnterpriseApplicationService for the EnterpriseSession passed in. |
void |
deleteApplicationSession(java.lang.String deleteAction,
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession)
Deletes the ApplicationSession object passed in from the EnterpriseApplicationService by performing an ApplicationSession-Delete-Request. |
AppConfig |
getAppConfig()
Returns the AppConfig object associated to this AuthManager. |
java.lang.String |
getAuthUserId()
Returns the AuthUserId associated to this AuthManager. |
java.lang.String |
getAuthUserSignature()
Returns the AuthUserSignature associated to this AuthManager. |
ProducerPool |
getProducerPool()
Returns the ProducerPool object associated to this AuthManager. |
java.lang.String |
getSenderAppId()
Returns the SenderAppId associated to this AuthManager that will be used by objects as messages are sent. |
java.lang.String |
getUuidGenUri()
Returns the UUID generation URL associated to this AuthManager. |
boolean |
hasPermission(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession,
java.lang.String permissionName)
Determines if the user associated to the ApplicationSession passed is granted the permission passed in. |
void |
setAppConfig(AppConfig aConfig)
Sets the AppConfig object associated to this AuthManager. |
void |
setAuthUserId(java.lang.String userId)
Sets the AuthUserId associated to this AuthManager. |
void |
setAuthUserSignature(java.lang.String signature)
Sets the AuthUserSignature associated to this AuthManager. |
void |
setProducerPool(ProducerPool pool)
Sets the ProducerPool object associated to this AuthManager. |
void |
setSenderAppId(java.lang.String appId)
Sets the SenderAppId associated to this AuthManager. |
void |
setUuidGenUri(java.lang.String uri)
Sets the UUID generation URL associated to this AuthManager. |
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession |
updateApplicationSession(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession)
Updates an ApplicationSession object in the EnterpriseApplicationService. |
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession |
validateApplicationSession(java.lang.String appSessionId)
Takes the application session id passed in and queries the EnterpriseApplicationService for the ApplicationSession associated to that id. |
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseSession |
validateEnterpriseSession(java.lang.String sessionId)
Takes the enterprise session id passed in and queries the EnterpriseApplicationService for the EnterpriseSession associated to that id. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AuthManager()
public AuthManager(java.util.Properties props)
throws java.lang.Exception
| Method Detail |
public org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession validateApplicationSession(java.lang.String appSessionId)
throws AuthManagerException
AuthManagerException - if errors occur validating the ApplicationSesssion.
public void deleteApplicationSession(java.lang.String deleteAction,
org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession)
throws AuthManagerException
AuthManagerException - if errors occur.
public org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession createApplicationSession(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseSession entSession)
throws AuthManagerException
AuthManagerException - if errors occur.
public org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession updateApplicationSession(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession)
throws AuthManagerException
AuthManagerException - if errors occur.
public org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseSession validateEnterpriseSession(java.lang.String sessionId)
throws AuthManagerException
AuthManagerException - if errors occur validating the ApplicationSesssion.
public boolean hasPermission(org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.ApplicationSession appSession,
java.lang.String permissionName)
throws AuthManagerException
AuthManagerException - if errors occur.public void setProducerPool(ProducerPool pool)
public ProducerPool getProducerPool()
public void setAppConfig(AppConfig aConfig)
public AppConfig getAppConfig()
public void setSenderAppId(java.lang.String appId)
public java.lang.String getSenderAppId()
public void setAuthUserId(java.lang.String userId)
public java.lang.String getAuthUserId()
public void setAuthUserSignature(java.lang.String signature)
This particular value is stored with the EnterpriseApplicationService and ensures that no one except those with access to the AuthManagerProperties for this application knows this "secret" information. The information specified in the AuthManagerProperties must match the information stored with the EnterpriseApplicationService and is specific to an application (SenderAppId).
public java.lang.String getAuthUserSignature()
This particular value is stored with the EnterpriseApplicationService and ensures that no one except those with access to the AuthManagerProperties for this application knows this "secret" information. The information specified in the AuthManagerProperties must match the information stored with the EnterpriseApplicationService and is specific to an application (SenderAppId).
public void setUuidGenUri(java.lang.String uri)
The UUID will be generated using the GenericUuid OpenEAI object. If the url is "localhost" the UUID will be generated locally, otherwise, it will be generated by the service specified in the URL. (UuidGenServlet)
public java.lang.String getUuidGenUri()
The UUID will be generated using the GenericUuid OpenEAI object. If the url is "localhost" the UUID will be generated locally, otherwise, it will be generated by the service specified in the URL. (UuidGenServlet)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||