Package org.eclipse.jetty.security
Class AbstractLoginService
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.security.AbstractLoginService
-
- All Implemented Interfaces:
LoginService
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
- Direct Known Subclasses:
HashLoginService
,JDBCLoginService
@Deprecated(since="2021-05-27") public abstract class AbstractLoginService extends ContainerLifeCycle implements LoginService
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.AbstractLoginService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLoginService.RolePrincipal
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static class
AbstractLoginService.UserPrincipal
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IdentityService
getIdentityService()
Deprecated.Get the IdentityService associated with this Login Service.java.lang.String
getName()
Deprecated.boolean
isFullValidate()
Deprecated.UserIdentity
login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
Deprecated.Login a user.void
logout(UserIdentity user)
Deprecated.void
setFullValidate(boolean fullValidate)
Deprecated.void
setIdentityService(IdentityService identityService)
Deprecated.Set the identityService.void
setName(java.lang.String name)
Deprecated.Set the name.java.lang.String
toString()
Deprecated.boolean
validate(UserIdentity user)
Deprecated.Validate a user identity.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getName
in interfaceLoginService
- Returns:
- Get the name of the login service (aka Realm name)
- See Also:
LoginService.getName()
-
setIdentityService
public void setIdentityService(IdentityService identityService)
Deprecated.Set the identityService.- Specified by:
setIdentityService
in interfaceLoginService
- Parameters:
identityService
- the identityService to set
-
setName
public void setName(java.lang.String name)
Deprecated.Set the name.- Parameters:
name
- the name to set
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
login
public UserIdentity login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
Deprecated.Description copied from interface:LoginService
Login a user.- Specified by:
login
in interfaceLoginService
- Parameters:
username
- The user namecredentials
- The users credentialsrequest
- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
- See Also:
LoginService.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)
-
validate
public boolean validate(UserIdentity user)
Deprecated.Description copied from interface:LoginService
Validate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, ServletRequest)
is still valid.- Specified by:
validate
in interfaceLoginService
- Parameters:
user
- The user to validate- Returns:
- true if authentication has not been revoked for the user.
- See Also:
LoginService.validate(org.eclipse.jetty.server.UserIdentity)
-
getIdentityService
public IdentityService getIdentityService()
Deprecated.Description copied from interface:LoginService
Get the IdentityService associated with this Login Service.- Specified by:
getIdentityService
in interfaceLoginService
- Returns:
- the IdentityService associated with this Login Service.
- See Also:
LoginService.getIdentityService()
-
logout
public void logout(UserIdentity user)
Deprecated.- Specified by:
logout
in interfaceLoginService
- See Also:
LoginService.logout(org.eclipse.jetty.server.UserIdentity)
-
isFullValidate
public boolean isFullValidate()
Deprecated.
-
setFullValidate
public void setFullValidate(boolean fullValidate)
Deprecated.
-
-