Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.5.0)

E10686-06


oracle.adf.share.security
Interface AuthenticationService

All Known Implementing Classes:
AbstractAuthenticationService, JAASAuthenticationService, JEEAuthenticationService, JpsAuthenticationService

public interface AuthenticationService

Field Summary
static java.lang.String JAZN_CONFIG
           
static java.lang.String JAZN_LOGIN_PROVIDER
           
static java.lang.String LOGIN_CONFIG
           
static java.lang.String LOGIN_CONFIG_PROVIDER
           

 

Method Summary
 javax.security.auth.Subject getSubject()
          Return the subject from JAAS LoginContext
 void login(javax.security.auth.callback.CallbackHandler handler)
          JSE only.
 void login(java.lang.String userName, java.lang.String password)
          JSE only.
 void login(java.lang.String successUrl, java.lang.String cancelUrl, java.util.Map<java.lang.String,?> props)
          This method can be used for both SSO and non-SSO login.
 void logout()
          JSE only.
 void logout(java.lang.String targetUrl, java.util.Map<java.lang.String,?> props)
          This method is used Web applications, SSO or non-SSO, to logout current user.
 void setLoginConfigProvider(java.lang.String provider)
          Deprecated. Deprecated since 11.1.1.1.0

 

Field Detail

LOGIN_CONFIG

static final java.lang.String LOGIN_CONFIG
See Also:
Constant Field Values

LOGIN_CONFIG_PROVIDER

static final java.lang.String LOGIN_CONFIG_PROVIDER
See Also:
Constant Field Values

JAZN_LOGIN_PROVIDER

static final java.lang.String JAZN_LOGIN_PROVIDER
See Also:
Constant Field Values

JAZN_CONFIG

static final java.lang.String JAZN_CONFIG
See Also:
Constant Field Values

Method Detail

login

void login(javax.security.auth.callback.CallbackHandler handler)
JSE only. JAAS login with CallbackHandler
Parameters:
handler -

login

void login(java.lang.String userName,
           java.lang.String password)
JSE only. JAAS login with username and password
Parameters:
userName -
password -

logout

void logout()
JSE only. Logout user from JAAS LoginContext

getSubject

javax.security.auth.Subject getSubject()
Return the subject from JAAS LoginContext

setLoginConfigProvider

void setLoginConfigProvider(java.lang.String provider)
Deprecated. Deprecated since 11.1.1.1.0

login

void login(java.lang.String successUrl,
           java.lang.String cancelUrl,
           java.util.Map<java.lang.String,?> props)
This method can be used for both SSO and non-SSO login. However the cancelUrl is ignored for non-SSO. The supplied success and cancel URL can contain query parameters. If an application needs to pass more context information, it should be encoded as part of the success and cancel URLs.
Parameters:
successUrl - representing the URL that the user agent must be sent to after successful authentication. It is expected that the application will encode any Application Context in this URL
cancelUrl - representing the URL that the user agent must be taken to if the user chooses to cancel the login from the login form
props - used to convey any information relevant to the login process. It is mainly for extensibility

logout

void logout(java.lang.String targetUrl,
            java.util.Map<java.lang.String,?> props)
This method is used Web applications, SSO or non-SSO, to logout current user. Internally this method redirect to adfAuthentication servlet which handle SSO logout if SSO is configured. HTTP session is invalidate by adfAuthentication servlet and redirect to application specify return url, e.g. home page.
Parameters:
targetUrl - representing the URL that the user agent must be redirected to upon successful logout. It is expected that any application context will be encoded in this URL
props - used to convey any information relevant to the logout process. It is mainly for extensibility

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.5.0)

E10686-06


Copyright © 1997, 2011, Oracle. All rights reserved.