|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.identity.auth.IdLoginModule
public class IdLoginModule
Nested Class Summary | |
---|---|
class |
IdLoginModule.MissingOptionException
|
Field Summary | |
---|---|
static java.lang.String |
AUTH_SERVICE_URL
Property key used to define the authentication service to use. |
static java.lang.String |
DEBUG_OPTION_NAME
Property key for the debug flag. |
static java.lang.String |
SERVICE_PARAMS_OPTION_NAME
Property key used to define service instantiation parameters. |
Constructor Summary | |
---|---|
IdLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options)
Initialize this LoginModule. |
boolean |
login()
Method to authenticate a Subject (phase 1). |
boolean |
logout()
Method which logs out a Subject. |
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 AUTH_SERVICE_URL
IdentityServiceOp
interface.
public static final java.lang.String SERVICE_PARAMS_OPTION_NAME
public static final java.lang.String DEBUG_OPTION_NAME
Constructor Detail |
---|
public IdLoginModule()
Method Detail |
---|
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map<java.lang.String,?> sharedState, java.util.Map<java.lang.String,?> options)
initialize
in interface javax.security.auth.spi.LoginModule
subject
- the Subject to be authenticated.callbackHandler
- a CallbackHandler for communicating with the end user (prompting
for usernames and passwords, for example).sharedState
- state shared with other configured LoginModules.options
- options specified in the login Configuration for this particular
LoginModule.public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the authentication failspublic boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the commit failspublic boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the abort failspublic boolean logout() throws javax.security.auth.login.LoginException
logout
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the logout fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |