Class LoginContext
- java.lang.Object
-
- com.sun.identity.authentication.internal.LoginContext
-
public class LoginContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTH_MODULESstatic StringDONOT_INCLUDE_SMS_MODULEstatic StringLDAP_AUTH_URLstatic StringLDAPS_AUTH_URLstatic StringORGNAMEstatic StringPASSWORD
-
Constructor Summary
Constructors Modifier Constructor Description protectedLoginContext(String name, AuthSubject subject, CallbackHandler handler)protectedLoginContext(String name, CallbackHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoginModule[]getDefaultLoginModules()protected LoginModule[]getLoginModules()protected AuthSubjectgetSubject()protected voidlogin()protected voidlogout()
-
-
-
Field Detail
-
LDAP_AUTH_URL
public static final String LDAP_AUTH_URL
- See Also:
- Constant Field Values
-
LDAPS_AUTH_URL
public static final String LDAPS_AUTH_URL
- See Also:
- Constant Field Values
-
ORGNAME
public static final String ORGNAME
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
AUTH_MODULES
public static final String AUTH_MODULES
- See Also:
- Constant Field Values
-
DONOT_INCLUDE_SMS_MODULE
public static final String DONOT_INCLUDE_SMS_MODULE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoginContext
protected LoginContext(String name, CallbackHandler handler) throws LoginException
- Throws:
LoginException
-
LoginContext
protected LoginContext(String name, AuthSubject subject, CallbackHandler handler) throws LoginException
- Throws:
LoginException
-
-
Method Detail
-
getSubject
protected AuthSubject getSubject()
-
login
protected void login() throws LoginException- Throws:
LoginException
-
getLoginModules
protected LoginModule[] getLoginModules() throws Exception
- Throws:
Exception
-
getDefaultLoginModules
protected LoginModule[] getDefaultLoginModules() throws Exception
- Throws:
Exception
-
logout
protected void logout() throws LoginException- Throws:
LoginException
-
-