|
|||||||||||
| 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 String |
JAAS_APPLICATION
Constant used when creating the LoginContext object. |
| Constructor Summary | |
|---|---|
JAASAuthentication()
|
|
| Method Summary | |
|---|---|
void |
authenticate(Map<String,String> aMap)
This method does not actually authenticate the provided user. |
void |
authenticate(String aUserName,
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(Map<String,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 String JAAS_APPLICATION
LoginContext object.
| Constructor Detail |
|---|
public JAASAuthentication()
| Method Detail |
|---|
public void initialize(Map<String,String> aConfigMap)
throws Exception
initialize in interface AuthenticationInterfaceaConfigMap - this parameter is ignored.
Exception - -
never.
public void authenticate(Map<String,String> aMap)
throws Exception
authenticate in interface AuthenticationInterfaceaMap - this parameter is ignored.
Exception - -
never.
public void authenticate(String aUserName,
String aPassword)
throws Exception
JAAS_APPLICATION
as the key name of the configuration.
authenticate in interface AuthenticationInterfaceaUserName - the user name to authenticate.aPassword - the password used for the authentication.
Exception - if the authentication fails.
public void close()
throws Exception
close in interface AuthenticationInterfaceException - -
never.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||