|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.authentication.JAASAuthentication
public class JAASAuthentication
This class provides the capability of authentication against a JAAS module.
Field Summary | |
---|---|
static java.lang.String |
JAAS_APPLICATION
Constant used when creating the LoginContext object. |
Constructor Summary | |
---|---|
JAASAuthentication()
|
Method Summary | |
---|---|
void |
authenticate(java.util.Map<java.lang.String,java.lang.String> aMap)
This method does not actually authenticate the provided user. |
void |
authenticate(java.lang.String aUserName,
java.lang.String aPassword)
This method creates a login context using the JAAS_APPLICATION
as the key name of the configuration. |
void |
close()
There is nothing to close. |
void |
initialize(java.util.Map<java.lang.String,java.lang.String> aConfigMap)
No initialization required. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JAAS_APPLICATION
LoginContext
object.
Constructor Detail |
---|
public JAASAuthentication()
Method Detail |
---|
public void initialize(java.util.Map<java.lang.String,java.lang.String> aConfigMap) throws java.lang.Exception
initialize
in interface AuthenticationInterface
aConfigMap
- this parameter is ignored.
java.lang.Exception
- -
never.public void authenticate(java.util.Map<java.lang.String,java.lang.String> aMap) throws java.lang.Exception
authenticate
in interface AuthenticationInterface
aMap
- this parameter is ignored.
java.lang.Exception
- -
never.public void authenticate(java.lang.String aUserName, java.lang.String aPassword) throws java.lang.Exception
JAAS_APPLICATION
as the key name of the configuration.
authenticate
in interface AuthenticationInterface
aUserName
- the user name to authenticate.aPassword
- the password used for the authentication.
java.lang.Exception
- if the authentication fails.public void close() throws java.lang.Exception
close
in interface AuthenticationInterface
java.lang.Exception
- -
never.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |