Class AppServer.TestMappedLoginService

  • All Implemented Interfaces:
    org.eclipse.jetty.security.LoginService, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle
    Enclosing class:
    AppServer

    static class AppServer.TestMappedLoginService
    extends org.eclipse.jetty.security.AbstractLoginService
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.security.AbstractLoginService

        org.eclipse.jetty.security.AbstractLoginService.RolePrincipal, org.eclipse.jetty.security.AbstractLoginService.UserPrincipal
      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

        org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

        org.eclipse.jetty.util.component.Dumpable.DumpableContainer
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String role  
      protected java.util.Map<java.lang.String,​org.eclipse.jetty.security.AbstractLoginService.UserPrincipal> users  
      • Fields inherited from class org.eclipse.jetty.security.AbstractLoginService

        _fullValidate, _identityService, _name
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doStart()  
      protected java.lang.String[] loadRoleInfo​(org.eclipse.jetty.security.AbstractLoginService.UserPrincipal user)  
      protected org.eclipse.jetty.security.AbstractLoginService.UserPrincipal loadUserInfo​(java.lang.String user)  
      • Methods inherited from class org.eclipse.jetty.security.AbstractLoginService

        getIdentityService, getName, isFullValidate, login, logout, setFullValidate, setIdentityService, setName, toString, validate
      • Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

        addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer

        isDumpable
    • Field Detail

      • role

        private java.lang.String role
      • users

        protected final java.util.Map<java.lang.String,​org.eclipse.jetty.security.AbstractLoginService.UserPrincipal> users
    • Constructor Detail

      • TestMappedLoginService

        TestMappedLoginService​(java.lang.String role)
    • Method Detail

      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Overrides:
        doStart in class org.eclipse.jetty.util.component.ContainerLifeCycle
        Throws:
        java.lang.Exception
      • loadRoleInfo

        protected java.lang.String[] loadRoleInfo​(org.eclipse.jetty.security.AbstractLoginService.UserPrincipal user)
        Specified by:
        loadRoleInfo in class org.eclipse.jetty.security.AbstractLoginService
      • loadUserInfo

        protected org.eclipse.jetty.security.AbstractLoginService.UserPrincipal loadUserInfo​(java.lang.String user)
        Specified by:
        loadUserInfo in class org.eclipse.jetty.security.AbstractLoginService