|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sourceforge.jradiusclient.jaas.RadiusLoginModule
This is an implementation of javax.security.auth.spi.LoginModule specific to using a RADIUS Server for authentication.
| Field Summary | |
static int |
MAX_CHALLENGE_ATTEMPTS
|
| 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(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.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
| Constructor Detail |
public RadiusLoginModule()
| Method Detail |
public boolean abort()
throws javax.security.auth.login.LoginException
LoginModules did not succeed). It also cleans up any
internal state saved by the login method.
abort in interface javax.security.auth.spi.LoginModuleLoginModule should be ignored
javax.security.auth.login.LoginException - If the abort fails
public boolean commit()
throws javax.security.auth.login.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 javax.security.auth.spi.LoginModuleLoginModule should be ignored
javax.security.auth.login.LoginException - If the commit action fails
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.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 javax.security.auth.spi.LoginModulesubject - javax.security.auth.SubjectcallbackHandler - javax.security.auth.callback.CallbackHandlersharedState - java.util.Mapoptions - java.util.Map
public boolean login()
throws javax.security.auth.login.LoginException
login in interface javax.security.auth.spi.LoginModuleLoginModule succeeds, False if
this LoginModule should be ignored
FailedLoginException - if the login fails
javax.security.auth.login.LoginException - If this LoginModule can't perform
the requested authentication
public boolean logout()
throws javax.security.auth.login.LoginException
logout in interface javax.security.auth.spi.LoginModuleLoginModule should be ignored
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 | ||||||||||