Class 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.

    • Constructor Detail

      • ConfigurableSpnegoLoginService

        public ConfigurableSpnegoLoginService​(java.lang.String realm,
                                              org.eclipse.jetty.security.authentication.AuthorizationService authorizationService)
        Deprecated.
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Specified by:
        getName in interface LoginService
        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 interface LoginService
        Parameters:
        username - The user name
        credentials - The users credentials
        req - TODO
        Returns:
        A UserIdentity if the credentials matched, otherwise null
      • getIdentityService

        public IdentityService getIdentityService()
        Deprecated.
        Description copied from interface: LoginService
        Get the IdentityService associated with this Login Service.
        Specified by:
        getIdentityService in interface LoginService
        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 interface LoginService
        Parameters:
        identityService - the IdentityService associated with this Login Service.