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

E10686-08

oracle.adf.share.security.authentication
Class JAASAuthenticationService

java.lang.Object
  extended by oracle.adf.share.security.authentication.AbstractAuthenticationService
      extended by oracle.adf.share.security.authentication.JAASAuthenticationService
All Implemented Interfaces:
AuthenticationService

public class JAASAuthenticationService
extends AbstractAuthenticationService
implements AuthenticationService


Field Summary
protected static ADFLogger _adfSecLogger
           
protected  javax.security.auth.callback.CallbackHandler mCallbackHandler
           
protected  java.lang.String mConfig
           
protected  javax.security.auth.login.LoginContext mLoginContext
           
protected  java.lang.String mLoginModule
           
 
Fields inherited from interface oracle.adf.share.security.AuthenticationService
JAZN_CONFIG, JAZN_LOGIN_PROVIDER, LOGIN_CONFIG, LOGIN_CONFIG_PROVIDER
 
Constructor Summary
JAASAuthenticationService()
           
JAASAuthenticationService(java.lang.String loginModule)
           
JAASAuthenticationService(java.lang.String loginModule, java.lang.String config)
           
 
Method Summary
 java.lang.String getLoginModule()
           
 javax.security.auth.Subject getSubject()
          Return the subject from JAAS LoginContext
protected  void initSecurityContext(java.lang.String username)
           
 void login(javax.security.auth.callback.CallbackHandler handler)
          Implementer should overwrite this method if support JAAS login
 void login(java.lang.String username, java.lang.String password)
          Implementer should overwrite this method if support non container authentication
 void logout()
          JSE only.
 void setLoginConfig(java.lang.String config)
           
 void setLoginConfigProvider(java.lang.String provider)
          Deprecated. Deprecated since 11.1.1.1.0
 void setLoginModule(java.lang.String loginModule)
           
 void showPrincipals()
           
 
Methods inherited from class oracle.adf.share.security.authentication.AbstractAuthenticationService
hasSsoSupport, internalLogout, login, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adf.share.security.AuthenticationService
login, logout
 

Field Detail

_adfSecLogger

protected static ADFLogger _adfSecLogger

mLoginContext

protected javax.security.auth.login.LoginContext mLoginContext

mCallbackHandler

protected javax.security.auth.callback.CallbackHandler mCallbackHandler

mLoginModule

protected java.lang.String mLoginModule

mConfig

protected java.lang.String mConfig
Constructor Detail

JAASAuthenticationService

public JAASAuthenticationService()

JAASAuthenticationService

public JAASAuthenticationService(java.lang.String loginModule,
                                 java.lang.String config)

JAASAuthenticationService

public JAASAuthenticationService(java.lang.String loginModule)
Method Detail

login

public void login(java.lang.String username,
                  java.lang.String password)
Description copied from class: AbstractAuthenticationService
Implementer should overwrite this method if support non container authentication

Specified by:
login in interface AuthenticationService
Overrides:
login in class AbstractAuthenticationService

login

public void login(javax.security.auth.callback.CallbackHandler handler)
Description copied from class: AbstractAuthenticationService
Implementer should overwrite this method if support JAAS login

Specified by:
login in interface AuthenticationService
Overrides:
login in class AbstractAuthenticationService

logout

public void logout()
Description copied from interface: AuthenticationService
JSE only. Logout user from JAAS LoginContext

Specified by:
logout in interface AuthenticationService
Overrides:
logout in class AbstractAuthenticationService

getSubject

public javax.security.auth.Subject getSubject()
Description copied from interface: AuthenticationService
Return the subject from JAAS LoginContext

Specified by:
getSubject in interface AuthenticationService
Overrides:
getSubject in class AbstractAuthenticationService

setLoginConfig

public void setLoginConfig(java.lang.String config)
Overrides:
setLoginConfig in class AbstractAuthenticationService

setLoginModule

public void setLoginModule(java.lang.String loginModule)

getLoginModule

public java.lang.String getLoginModule()

initSecurityContext

protected void initSecurityContext(java.lang.String username)

setLoginConfigProvider

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

Specified by:
setLoginConfigProvider in interface AuthenticationService
Overrides:
setLoginConfigProvider in class AbstractAuthenticationService

showPrincipals

public void showPrincipals()

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

E10686-08

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