Top Description Inners Fields Constructors Methods
org.eclipse.jetty.security

public Class UserStore

extends ContainerLifeCycle
Class Inheritance
Known Direct Subclasses
org.eclipse.jetty.security.PropertyUserStore
Imports
java.util.Arrays, .Collections, .List, .Map, java.util.concurrent.ConcurrentHashMap, java.util.stream.Collectors, org.eclipse.jetty.util.component.ContainerLifeCycle, org.eclipse.jetty.util.security.Credential

Store of user authentication and authorization information.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
protected final Map<String, UserStore.User>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addUser(String username, Credential credential, String[] roles)

public List<RolePrincipal>
public UserPrincipal
public void
removeUser(String username)

public String
toString()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.toString.

Returns a string representation of the object.

Inherited from org.eclipse.jetty.util.component.ContainerLifeCycle:
addBeanaddBeanaddEventListeneraddManagedcontainsdestroydoStartdoStopdumpdumpdumpdumpObjectsdumpStdErrgetBeangetBeansgetBeansgetContainedBeansgetContainedBeansisAutoisManagedisUnmanagedmanageremoveBeanremoveBeansremoveEventListenersetBeansstartstopunmanageupdateBeanupdateBeanupdateBeansupdateBeans

Field Detail

_usersback to summary
protected final Map<String, UserStore.User> _users

Constructor Detail

UserStoreback to summary
public UserStore()

Method Detail

addUserback to summary
public void addUser(String username, Credential credential, String[] roles)
getRolePrincipalsback to summary
public List<RolePrincipal> getRolePrincipals(String username)
getUserPrincipalback to summary
public UserPrincipal getUserPrincipal(String username)
removeUserback to summary
public void removeUser(String username)
toStringback to summary
public String toString()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
org.eclipse.jetty.security back to summary

protected Class UserStore.User

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected List<RolePrincipal>
protected UserPrincipal

Constructor Summary

AccessConstructor and Description
protected
User(String username, Credential credential, String[] roles)

Method Summary

Modifier and TypeMethod and Description
protected List<RolePrincipal>
protected UserPrincipal
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_rolePrincipalsback to summary
protected List<RolePrincipal> _rolePrincipals
_userPrincipalback to summary
protected UserPrincipal _userPrincipal

Constructor Detail

Userback to summary
protected User(String username, Credential credential, String[] roles)

Method Detail

getRolePrincipalsback to summary
protected List<RolePrincipal> getRolePrincipals()
getUserPrincipalback to summary
protected UserPrincipal getUserPrincipal()