Class UserStore

  • All Implemented Interfaces:
    org.eclipse.jetty.util.component.LifeCycle
    Direct Known Subclasses:
    PropertyUserStore

    public class UserStore
    extends org.eclipse.jetty.util.component.AbstractLifeCycle
    Store of user authentication and authorization information.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  UserStore.User  
      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
      • 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
      protected java.util.Map<java.lang.String,​UserStore.User> _users  
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, STARTED, STARTING, STOPPED, STOPPING
    • Constructor Summary

      Constructors 
      Constructor Description
      UserStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addUser​(java.lang.String username, org.eclipse.jetty.util.security.Credential credential, java.lang.String[] roles)  
      java.util.List<RolePrincipal> getRolePrincipals​(java.lang.String username)  
      UserPrincipal getUserPrincipal​(java.lang.String username)  
      void removeUser​(java.lang.String username)  
      java.lang.String toString()  
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _users

        protected final java.util.Map<java.lang.String,​UserStore.User> _users
    • Constructor Detail

      • UserStore

        public UserStore()
    • Method Detail

      • addUser

        public void addUser​(java.lang.String username,
                            org.eclipse.jetty.util.security.Credential credential,
                            java.lang.String[] roles)
      • removeUser

        public void removeUser​(java.lang.String username)
      • getUserPrincipal

        public UserPrincipal getUserPrincipal​(java.lang.String username)
      • getRolePrincipals

        public java.util.List<RolePrincipal> getRolePrincipals​(java.lang.String username)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.eclipse.jetty.util.component.AbstractLifeCycle