public class BasicLoginModule
extends Object
implements javax.security.auth.spi.LoginModule
Constructor and Description |
---|
BasicLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort() |
protected String[] |
authenticate() |
boolean |
commit() |
protected String |
getPassword() |
protected Principal |
getPortalPrincipal(String name) |
protected Principal |
getPrincipal() |
protected javax.security.auth.Subject |
getSubject() |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected void |
setPassword(String password) |
protected void |
setPrincipal(Principal principal) |
public boolean abort()
abort
in interface javax.security.auth.spi.LoginModule
public boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface javax.security.auth.spi.LoginModule
public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean logout()
logout
in interface javax.security.auth.spi.LoginModule
protected String[] authenticate() throws IOException, javax.security.auth.callback.UnsupportedCallbackException
IOException
javax.security.auth.callback.UnsupportedCallbackException
protected String getPassword()
protected Principal getPortalPrincipal(String name) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
protected Principal getPrincipal()
protected javax.security.auth.Subject getSubject()
protected void setPassword(String password)
protected void setPrincipal(Principal principal)