|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.uses.net.sourceforge.jradiusclient.jaas.RadiusLoginModule
public class RadiusLoginModule
This is an implementation of javax.security.auth.spi.LoginModule specific to using a RADIUS Server for authentication.
| Field Summary | |
|---|---|
protected CallbackHandler |
callbackHandler
|
static int |
MAX_CHALLENGE_ATTEMPTS
|
protected Map |
moduleOptions
|
protected Subject |
radiusSubject
|
protected Map |
sharedState
|
| Constructor Summary | |
|---|---|
RadiusLoginModule()
|
|
| Method Summary | |
|---|---|
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Initialize this LoginModule. |
boolean |
login()
Authenticates this Subject against a RADIUS Server (phase 1). |
boolean |
logout()
This method logs out a Subject (Poss. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_CHALLENGE_ATTEMPTS
protected Subject radiusSubject
protected CallbackHandler callbackHandler
protected Map sharedState
protected Map moduleOptions
| Constructor Detail |
|---|
public RadiusLoginModule()
| Method Detail |
|---|
public boolean abort()
throws LoginException
LoginModules did not succeed). It also cleans up any
internal state saved by the login method.
abort in interface LoginModuleLoginModule should be ignored
LoginException - If the abort fails
public boolean commit()
throws LoginException
LoginModules succeeded).
If this LoginModule's own authentication attempt succeeded (checked by
retrieving the private state saved by the login method), then this
method associates relevant Principals and Credentials with the Subject
located in the LoginModule. If this LoginModule's own authentication
attempt failed, then this method cleans up any internal state saved by
the login method. ( poss. improvement: perform
a RADIUS accounting request to notify RADIUS server of login time.)
commit in interface LoginModuleLoginModule should be ignored
LoginException - If the commit action fails
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
LoginModule.
This method is called by the LoginContext after this LoginModule has
been instantiated. The purpose of this method is to initialize this
LoginModule with the relevant information. If this LoginModule does not
understand any of the data stored in sharedState or options parameters,
they can be ignored. There MUST be the following parameters specified in
the options:
initialize in interface LoginModulesubject - javax.security.auth.SubjectcallbackHandler - javax.security.auth.callback.CallbackHandlersharedState - java.util.Mapoptions - java.util.Map
public boolean login()
throws LoginException
login in interface LoginModuleLoginModule succeeds, False if
this LoginModule should be ignored
FailedLoginException - if the login fails
LoginException - If this LoginModule can't perform
the requested authentication
public boolean logout()
throws LoginException
logout in interface LoginModuleLoginModule should be ignored
LoginException - if the logout fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||