|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.mail.OESContext
Constructor Summary | |
OESContext() |
|
OESContext(boolean debug) |
|
OESContext(java.lang.String userType) |
|
OESContext(java.lang.String userType, boolean debug) |
Method Summary | |
boolean |
authenticate(java.lang.String appDN, java.lang.String oraHome) Creates the login context for the applications by accepting the application's DN and the oracle home. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESContext appContext) Authenticates the users by taking their applications's oes context. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESLoginContext appLoginContext) Authenticates the users by taking their applications's login context. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, java.lang.String[] toCache, OESContext appContext) Authenticates the users by taking their applications's oes context. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, java.lang.String[] toCache, OESLoginContext appLoginContext) Authenticates the users by taking their applications's login context. |
boolean |
authenticate(java.lang.String userName, java.lang.String password, java.lang.String ldapHost, int ldapPort) Authenticates the user by taking username, password, hostname on which the directory server is running and the port number. |
void |
createDataBaseConnectionPool(java.lang.String installationName, java.lang.String mailStoreDBName, int minSize, int maxSize, int incrementSize, int stmtCacheSize, int cacheScheme) Creates database connection pool for the authenticated "app" users. |
void |
createLDAPConnectionPool(int minSize, int initialSize, int maxSize, int incrementSize, int shrinkingTimeOutInterval, int timeOutInterval) Creates ldap connection pool for the "app" user. |
ESDSDirServerAccess |
getDirectoryAccess() Returns an object used to access Email Server Directory information |
ESDSContext |
getDirectoryContext() Returns an object associated with the credentials used to access Email Server Directory information |
ESDSDirServerAccess |
getDSAccess() |
ESDSContext |
getDSContext() |
OESLoginContext |
getDSLogin() |
java.lang.String[] |
getMailstoreDBNames(java.lang.String installationName) This method returns a list of global database names containing mail stores for a given OES installation. Note :- this methos can only be invoked by the authenticated "app" users. |
java.lang.String |
getOracleHome() |
oracle.mail.admin.runtime.Session |
getSession() |
java.lang.String |
getUserType() |
boolean |
isAuthenticated() |
void |
setOracleHome(java.lang.String s) |
void |
setSession(oracle.mail.admin.runtime.Session s) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OESContext() throws OESException
public OESContext(boolean debug) throws OESException
public OESContext(java.lang.String userType) throws OESException
public OESContext(java.lang.String userType, boolean debug) throws OESException
Method Detail |
public void setOracleHome(java.lang.String s)
public java.lang.String getOracleHome()
public void setSession(oracle.mail.admin.runtime.Session s)
public oracle.mail.admin.runtime.Session getSession()
public OESLoginContext getDSLogin()
public ESDSDirServerAccess getDSAccess()
public ESDSContext getDSContext()
public java.lang.String getUserType()
public boolean isAuthenticated()
public boolean authenticate(java.lang.String userName, java.lang.String password, java.lang.String ldapHost, int ldapPort) throws OESException
userName
- user_name@domain_name or DN of the 'app' user.password
- user password.ldapHost
- hostname on which the LDAP server containing the mail user information is running.ldapPort
- port number on which the LDAP server is listening.public boolean authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESContext appContext) throws OESException
NOTE:- if the client password is null, then it is assumed that the client has already been authenticated by other means such as SSO and a client context will still be created, if the provided appContext is valid.
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.appContext
- oes context of the application.public boolean authenticate(java.lang.String clientUserName, java.lang.String clientPassword, java.lang.String[] toCache, OESContext appContext) throws OESException
NOTE:- if the client password is null, then it is assumed that the client has already been authenticated by other means such as SSO and a client context will still be created, if the provided appContext is valid.
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.toCache
- list of attribute names to cache in ctxappContext
- oes context of the application.public boolean authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESLoginContext appLoginContext) throws OESException
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.appLoginContext
- login context of the application.public boolean authenticate(java.lang.String clientUserName, java.lang.String clientPassword, java.lang.String[] toCache, OESLoginContext appLoginContext) throws OESException
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.toCache
- list of attribute names to cache in ctxappLoginContext
- login context of the application.public boolean authenticate(java.lang.String appDN, java.lang.String oraHome) throws OESException
appDN
- DN of the application.oraHome
- Oracle home directory path.public void createLDAPConnectionPool(int minSize, int initialSize, int maxSize, int incrementSize, int shrinkingTimeOutInterval, int timeOutInterval) throws OESException
minSize
- Minimun Size of the connection poolinitialSize
- Initial Size of the connection poolmaxSize
- Maximum Size of the connection poolincrementSize
- Pool increment SizeshrinkingTimeOutInterval
- Pool Srinkage Time In secondstimeOutInterval
- Timeout Interval For Getting A Connectionpublic java.lang.String[] getMailstoreDBNames(java.lang.String installationName) throws OESException
installationName
- OES installation name. (default "um_system")public void createDataBaseConnectionPool(java.lang.String installationName, java.lang.String mailStoreDBName, int minSize, int maxSize, int incrementSize, int stmtCacheSize, int cacheScheme) throws OESException
installationName
- OES installation name.mailStoreDBName
- mail store database name for which the connection pool is being created. A list of mail store database names could be obtained through getMailstoreDBNames().minSize
- Minimun Size of the connection poolmaxSize
- Maximum Size of the connection poolincrementSize
- Pool increment SizestmtCacheSize
- Statement cache sizecacheScheme
- OracleConnectionCacheImpl.FIXED_WAIT_SCHEME, OracleConnectionCacheImpl.DYNAMIC_SCHEME, OracleConnectionCacheImpl.FIXED_RETURN_NULL_SCHEMEpublic ESDSDirServerAccess getDirectoryAccess()
ESDSDirServerAccess
public ESDSContext getDirectoryContext()
ESDSDirServerAccess.ESDSLogon(String,String,String,ESDSAuthObject)
, ESDSDirServerAccess.ESDSLogon(String,String,String)
, ESDSDirServerAccess.ESDSClientLogon(ESDSContext,String,ESDSAuthObject)
, ESDSDirServerAccess.ESDSClientLogon(String,String,String,ESDSAuthObject)
|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |