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.String
JAAS_APPLICATION
Constant used when creating theLoginContext
object.
-
Constructor Summary
Constructors Constructor Description JAASAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(java.lang.String aUserName, java.lang.String aPassword)
This method creates a login context using theJAAS_APPLICATION
as the key name of the configuration.void
authenticate(java.util.Map<java.lang.String,java.lang.String> aMap)
This method does not actually authenticate the provided user.void
close()
There is nothing to close.void
initialize(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 theLoginContext
object.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.util.Map<java.lang.String,java.lang.String> aConfigMap) throws java.lang.Exception
No initialization required. The call to this method is ignored.- Specified by:
initialize
in 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.Exception
This method does not actually authenticate the provided user.- Specified by:
authenticate
in 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.Exception
This method creates a login context using theJAAS_APPLICATION
as the key name of the configuration.- Specified by:
authenticate
in 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.Exception
There is nothing to close. The call to this method is ignored.- Specified by:
close
in interfaceAuthenticationInterface
- Throws:
java.lang.Exception
- - never.
-
-