Package org.eclipse.jetty.security
Class ConfigurableSpnegoLoginService
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.security.ConfigurableSpnegoLoginService
-
- All Implemented Interfaces:
LoginService
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
@Deprecated(since="2021-05-27") public class ConfigurableSpnegoLoginService extends ContainerLifeCycle implements LoginService
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A configurable (as opposed to using system properties) SPNEGO LoginService.
At startup, this LoginService will login via JAAS the service principal, composed of the
service name
and thehost name
, for exampleHTTP/wonder.com
, using akeyTab
file as the service principal credentials.Upon receiving an HTTP request, the server tries to authenticate the client calling
login(String, Object, ServletRequest)
where the GSS APIs are used to verify client tokens and (perhaps after a few round-trips) aGSSContext
is established.
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description ConfigurableSpnegoLoginService(java.lang.String realm, org.eclipse.jetty.security.authentication.AuthorizationService authorizationService)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getHostName()
Deprecated.IdentityService
getIdentityService()
Deprecated.Get the IdentityService associated with this Login Service.java.nio.file.Path
getKeyTabPath()
Deprecated.java.lang.String
getName()
Deprecated.java.lang.String
getServiceName()
Deprecated.UserIdentity
login(java.lang.String username, java.lang.Object credentials, ServletRequest req)
Deprecated.Login a user.void
logout(UserIdentity user)
Deprecated.void
setHostName(java.lang.String hostName)
Deprecated.void
setIdentityService(IdentityService identityService)
Deprecated.Set the IdentityService associated with this Login Service.void
setKeyTabPath(java.nio.file.Path keyTabFile)
Deprecated.void
setServiceName(java.lang.String serviceName)
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, toString
-
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:
- the realm name
-
getKeyTabPath
public java.nio.file.Path getKeyTabPath()
Deprecated.- Returns:
- the path of the keyTab file containing service credentials
-
setKeyTabPath
public void setKeyTabPath(java.nio.file.Path keyTabFile)
Deprecated.- Parameters:
keyTabFile
- the path of the keyTab file containing service credentials
-
getServiceName
public java.lang.String getServiceName()
Deprecated.- Returns:
- the service name, typically "HTTP"
- See Also:
getHostName()
-
setServiceName
public void setServiceName(java.lang.String serviceName)
Deprecated.- Parameters:
serviceName
- the service name- See Also:
setHostName(String)
-
getHostName
public java.lang.String getHostName()
Deprecated.- Returns:
- the host name of the service
- See Also:
setServiceName(String)
-
setHostName
public void setHostName(java.lang.String hostName)
Deprecated.- Parameters:
hostName
- the host name of the service
-
login
public UserIdentity login(java.lang.String username, java.lang.Object credentials, ServletRequest req)
Deprecated.Description copied from interface:LoginService
Login a user.- Specified by:
login
in interfaceLoginService
- Parameters:
username
- The user namecredentials
- The users credentialsreq
- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
-
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.
-
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.
-
setIdentityService
public void setIdentityService(IdentityService identityService)
Deprecated.Description copied from interface:LoginService
Set the IdentityService associated with this Login Service.- Specified by:
setIdentityService
in interfaceLoginService
- Parameters:
identityService
- the IdentityService associated with this Login Service.
-
logout
public void logout(UserIdentity user)
Deprecated.- Specified by:
logout
in interfaceLoginService
-
-