|
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.OESLoginContext
This class accepts the user credentials and authenticates against the LDAP directory. If successfully authenticated, a directory context will be created for the user based on the user type. supported user types are mailuser and app.
Users can pass this login context to any email server SDK that requires user credentials.
Method Summary | |
boolean |
authenticate(java.lang.String appDN, java.lang.String oraHome) Deprecated. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESLoginContext appContext) Deprecated. |
boolean |
authenticate(java.lang.String clientUserName, java.lang.String clientPassword, java.lang.String[] toCache, OESLoginContext appContext) Deprecated. |
boolean |
authenticate(java.lang.String userName, java.lang.String password, java.lang.String ldapHost, int ldapPort) Deprecated. |
boolean |
authenticate(java.lang.String userName, java.lang.String proxyUserDN, java.lang.String proxyPassword, java.lang.String ldapHost, int ldapPort) Deprecated. - proxy authentication is no longer supported. |
boolean |
authenticateUMAdmin(java.lang.String ldaphost, java.lang.String ldapport, java.lang.String umAdminPassword) This method checks if the password of UMADMIN is correct or not. |
ESDSDirServerAccess |
getDirectoryAccess() Returns an object used to access Email Server Directory information |
ESDSContext |
getDirectoryContext() returns the directory context. |
OESContext |
getOESContext() |
java.lang.String |
getUserDomain() returns the domain of the user. |
java.lang.String |
getUserName() returns the user name. |
java.lang.String |
getUserType() |
boolean |
isAuthenticated() |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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 userName, java.lang.String proxyUserDN, java.lang.String proxyPassword, java.lang.String ldapHost, int ldapPort) throws OESException
caller should pass a proxy user DN and the proxy user password to establish a directory connection for the mailuser/server/application.
userName
- - user_name@domain_name for mailusers (OR) DN of the servers.proxyUserDN
- DN of the proxy user.proxyPassword
- proxy 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, java.lang.String[] toCache, OESLoginContext 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. Deprecating it to make sure that it can later be made protected
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.toCache
- list of attribute names to cache in ctxappContext
- login context of the application.public boolean authenticate(java.lang.String clientUserName, java.lang.String clientPassword, OESLoginContext 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. Deprecating it to make sure that it can later be made protected
clientUserName
- client user name as user_name@domain_name.clientPassword
- password of the client user.appContext
- login context of the application.public boolean authenticateUMAdmin(java.lang.String ldaphost, java.lang.String ldapport, java.lang.String umAdminPassword) throws OESException
umAdminPassword
- password of the client user.appContext
- 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 java.lang.String getUserName()
public java.lang.String getUserDomain()
public java.lang.String getUserType()
public ESDSContext getDirectoryContext()
public ESDSDirServerAccess getDirectoryAccess()
ESDSDirServerAccess
public boolean isAuthenticated()
public OESContext getOESContext()
|
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 |