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 the host name,
for example HTTP/wonder.com, using a keyTab 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) a GSSContext is
established.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurableSpnegoLoginService(String realm, org.eclipse.jetty.security.authentication.AuthorizationService authorizationService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Get the IdentityService associated with this Login Service.Deprecated.getName()Deprecated.Deprecated.login(String username, Object credentials, ServletRequest req) Deprecated.Login a user.voidlogout(UserIdentity user) Deprecated.voidsetHostName(String hostName) Deprecated.voidsetIdentityService(IdentityService identityService) Deprecated.Set the IdentityService associated with this Login Service.voidsetKeyTabPath(Path keyTabFile) Deprecated.voidsetServiceName(String serviceName) Deprecated.booleanvalidate(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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
ConfigurableSpnegoLoginService
public ConfigurableSpnegoLoginService(String realm, org.eclipse.jetty.security.authentication.AuthorizationService authorizationService) Deprecated.
-
-
Method Details
-
getName
Deprecated.- Specified by:
getNamein interfaceLoginService- Returns:
- the realm name
-
getKeyTabPath
Deprecated.- Returns:
- the path of the keyTab file containing service credentials
-
setKeyTabPath
Deprecated.- Parameters:
keyTabFile- the path of the keyTab file containing service credentials
-
getServiceName
Deprecated.- Returns:
- the service name, typically "HTTP"
- See Also:
-
setServiceName
Deprecated.- Parameters:
serviceName- the service name- See Also:
-
getHostName
Deprecated.- Returns:
- the host name of the service
- See Also:
-
setHostName
Deprecated.- Parameters:
hostName- the host name of the service
-
login
Deprecated.Description copied from interface:LoginServiceLogin a user.- Specified by:
loginin interfaceLoginService- Parameters:
username- The user namecredentials- The users credentialsreq- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
-
validate
Deprecated.Description copied from interface:LoginServiceValidate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, ServletRequest)is still valid.- Specified by:
validatein interfaceLoginService- Parameters:
user- The user to validate- Returns:
- true if authentication has not been revoked for the user.
-
getIdentityService
Deprecated.Description copied from interface:LoginServiceGet the IdentityService associated with this Login Service.- Specified by:
getIdentityServicein interfaceLoginService- Returns:
- the IdentityService associated with this Login Service.
-
setIdentityService
Deprecated.Description copied from interface:LoginServiceSet the IdentityService associated with this Login Service.- Specified by:
setIdentityServicein interfaceLoginService- Parameters:
identityService- the IdentityService associated with this Login Service.
-
logout
Deprecated.- Specified by:
logoutin interfaceLoginService
-