|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.auth.jaas.keystore.KeyStoreLoginModule
public class KeyStoreLoginModule
This is keystore login module. This login module checks keystore's certificates
| Field Summary | |
|---|---|
protected static int |
AUTHENTICATED
User authenticated state |
protected CallbackHandler |
callbackHandler
Callback handler |
protected static int |
INITIALIZED
Initialised state |
protected static int |
LOGGED_IN
Logged in state |
protected org.slf4j.Logger |
logger
Logger |
protected Map<String,?> |
options
|
protected Map<String,?> |
sharedState
|
protected int |
status
Current state defaulted to uninitialised |
protected Subject |
subject
Subject |
protected static int |
UNINITIALIZED
Uninitialised state |
protected String |
username
Username |
| Constructor Summary | |
|---|---|
KeyStoreLoginModule()
Default contructor |
|
| Method Summary | |
|---|---|
boolean |
abort()
Aborts login |
boolean |
commit()
Performs commit |
String |
getKeystoreURL()
Returns keystore URL |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Init method |
boolean |
login()
Login method |
boolean |
logout()
Logs out |
void |
setKeystorePassword(String password)
Sets keystore password |
void |
setKeystoreURL(String url)
Sets keystore URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.slf4j.Logger logger
protected Subject subject
protected CallbackHandler callbackHandler
protected Map<String,?> sharedState
protected Map<String,?> options
protected String username
protected static final int UNINITIALIZED
protected static final int INITIALIZED
protected static final int AUTHENTICATED
protected static final int LOGGED_IN
protected int status
| Constructor Detail |
|---|
public KeyStoreLoginModule()
| Method Detail |
|---|
public void setKeystorePassword(String password)
password - keystore passwordpublic void setKeystoreURL(String url)
url - keystore URLpublic String getKeystoreURL()
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
initialize in interface LoginModulesubject - subjectcallbackHandler - handlersharedState - shared stateoptions - options
public boolean login()
throws LoginException
login in interface LoginModuletrue if successful
LoginException
public boolean commit()
throws LoginException
commit in interface LoginModuletrue if successful
LoginException
public boolean abort()
throws LoginException
abort in interface LoginModuletrue if successful
LoginException
public boolean logout()
throws LoginException
logout in interface LoginModuletrue if successful
LoginException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||