Package com.ibm.di.api.authentication
Class JAASAuthentication
- java.lang.Object
-
- com.ibm.di.api.authentication.JAASAuthentication
-
- All Implemented Interfaces:
AuthenticationInterface
public class JAASAuthentication extends java.lang.Object implements AuthenticationInterface
This class provides the capability of authentication against a JAAS module.- Since:
- 7.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJAAS_APPLICATIONConstant used when creating theLoginContextobject.
-
Constructor Summary
Constructors Constructor Description JAASAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(java.lang.String aUserName, java.lang.String aPassword)This method creates a login context using theJAAS_APPLICATIONas the key name of the configuration.voidauthenticate(java.util.Map<java.lang.String,java.lang.String> aMap)This method does not actually authenticate the provided user.voidclose()There is nothing to close.voidinitialize(java.util.Map<java.lang.String,java.lang.String> aConfigMap)No initialization required.
-
-
-
Field Detail
-
JAAS_APPLICATION
public static final java.lang.String JAAS_APPLICATION
Constant used when creating theLoginContextobject.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.util.Map<java.lang.String,java.lang.String> aConfigMap) throws java.lang.ExceptionNo initialization required. The call to this method is ignored.- Specified by:
initializein interfaceAuthenticationInterface- Parameters:
aConfigMap- this parameter is ignored.- Throws:
java.lang.Exception- - never.
-
authenticate
public void authenticate(java.util.Map<java.lang.String,java.lang.String> aMap) throws java.lang.ExceptionThis method does not actually authenticate the provided user.- Specified by:
authenticatein interfaceAuthenticationInterface- Parameters:
aMap- this parameter is ignored.- Throws:
java.lang.Exception- - never.
-
authenticate
public void authenticate(java.lang.String aUserName, java.lang.String aPassword) throws java.lang.ExceptionThis method creates a login context using theJAAS_APPLICATIONas the key name of the configuration.- Specified by:
authenticatein interfaceAuthenticationInterface- Parameters:
aUserName- the user name to authenticate.aPassword- the password used for the authentication.- Throws:
java.lang.Exception- if the authentication fails.
-
close
public void close() throws java.lang.ExceptionThere is nothing to close. The call to this method is ignored.- Specified by:
closein interfaceAuthenticationInterface- Throws:
java.lang.Exception- - never.
-
-