public class JAASLoginService
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.security.LoginService
| Modifier and Type | Field and Description |
|---|---|
protected String |
_callbackHandlerClass |
protected JAASUserPrincipal |
_defaultUser |
protected org.eclipse.jetty.security.IdentityService |
_identityService |
protected String |
_loginModuleName |
protected String |
_realmName |
protected String[] |
_roleClassNames |
static String |
DEFAULT_ROLE_CLASS_NAME |
static String[] |
DEFAULT_ROLE_CLASS_NAMES |
| Constructor and Description |
|---|
JAASLoginService()
Constructor.
|
JAASLoginService(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
org.eclipse.jetty.security.IdentityService |
getIdentityService()
Get the identityService.
|
String |
getName()
Get the name of the realm.
|
String[] |
getRoleClassNames() |
org.eclipse.jetty.server.UserIdentity |
login(String username,
Object credentials) |
void |
logout(org.eclipse.jetty.server.UserIdentity user) |
void |
setCallbackHandlerClass(String classname) |
void |
setIdentityService(org.eclipse.jetty.security.IdentityService identityService)
Set the identityService.
|
void |
setLoginModuleName(String name)
Set the name to use to index into the config
file of LoginModules.
|
void |
setName(String name)
Set the name of the realm
|
void |
setRoleClassNames(String[] classnames) |
boolean |
validate(org.eclipse.jetty.server.UserIdentity user) |
public static String DEFAULT_ROLE_CLASS_NAME
public static String[] DEFAULT_ROLE_CLASS_NAMES
protected String[] _roleClassNames
protected String _callbackHandlerClass
protected String _realmName
protected String _loginModuleName
protected JAASUserPrincipal _defaultUser
protected org.eclipse.jetty.security.IdentityService _identityService
public JAASLoginService()
public JAASLoginService(String name)
name - the name of the realmpublic String getName()
getName in interface org.eclipse.jetty.security.LoginServicepublic void setName(String name)
name - a String valuepublic org.eclipse.jetty.security.IdentityService getIdentityService()
getIdentityService in interface org.eclipse.jetty.security.LoginServicepublic void setIdentityService(org.eclipse.jetty.security.IdentityService identityService)
setIdentityService in interface org.eclipse.jetty.security.LoginServiceidentityService - the identityService to setpublic void setLoginModuleName(String name)
name - a String valuepublic void setCallbackHandlerClass(String classname)
public void setRoleClassNames(String[] classnames)
public String[] getRoleClassNames()
protected void doStart()
throws Exception
doStart in class org.eclipse.jetty.util.component.AbstractLifeCycleExceptionAbstractLifeCycle.doStart()public org.eclipse.jetty.server.UserIdentity login(String username, Object credentials)
login in interface org.eclipse.jetty.security.LoginServicepublic boolean validate(org.eclipse.jetty.server.UserIdentity user)
validate in interface org.eclipse.jetty.security.LoginServicepublic void logout(org.eclipse.jetty.server.UserIdentity user)
logout in interface org.eclipse.jetty.security.LoginServiceCopyright © 1995-2016 Mort Bay Consulting. All Rights Reserved.