public abstract class BaseTomcatManager extends Object
Base users and groups management methods for the tomcat provider implementations.
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_USER_FULLNAME |
protected static String |
CATALINA_BASE_PROPERTY |
static String |
DATABASE_NAME |
static String |
DEFAULT_CATALINA_BASE |
protected String |
defaultCatalinaBase |
protected static Collection<UserManager.UserAttribute> |
USER_ATTRIBUTES |
protected static UserManager.UserAttribute |
USER_FULLNAME |
static String |
USERS_FILE |
protected String |
usersFile |
Constructor and Description |
---|
BaseTomcatManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeDatabase(org.apache.catalina.users.MemoryUserDatabase database) |
protected org.jboss.errai.security.shared.api.Group |
createGroup(org.apache.catalina.Role group) |
protected org.jboss.errai.security.shared.api.Role |
createRole(org.apache.catalina.Role group) |
protected org.jboss.errai.security.shared.api.identity.User |
createUser(org.apache.catalina.User user,
Iterator<org.apache.catalina.Role> groups) |
protected org.apache.catalina.users.MemoryUserDatabase |
getDatabase() |
protected org.apache.catalina.Role |
getRole(org.apache.catalina.users.MemoryUserDatabase database,
String identifier) |
protected org.apache.catalina.User |
getUser(org.apache.catalina.users.MemoryUserDatabase database,
String identifier) |
protected void |
initializeTomcatProperties() |
protected static boolean |
isConfigPropertySet(ConfigProperties.ConfigProperty property) |
protected static boolean |
isEmpty(String s) |
protected void |
loadConfig(ConfigProperties config) |
protected void |
saveDatabase(org.apache.catalina.users.MemoryUserDatabase database) |
public static final String DEFAULT_CATALINA_BASE
public static final String USERS_FILE
public static final String DATABASE_NAME
public static final String ATTRIBUTE_USER_FULLNAME
protected static final String CATALINA_BASE_PROPERTY
protected static final UserManager.UserAttribute USER_FULLNAME
protected static final Collection<UserManager.UserAttribute> USER_ATTRIBUTES
protected String defaultCatalinaBase
protected String usersFile
protected static boolean isConfigPropertySet(ConfigProperties.ConfigProperty property)
protected static boolean isEmpty(String s)
protected void loadConfig(ConfigProperties config)
protected void initializeTomcatProperties()
protected org.apache.catalina.users.MemoryUserDatabase getDatabase() throws SecurityManagementException
SecurityManagementException
protected void saveDatabase(org.apache.catalina.users.MemoryUserDatabase database) throws SecurityManagementException
SecurityManagementException
protected void closeDatabase(org.apache.catalina.users.MemoryUserDatabase database) throws SecurityManagementException
SecurityManagementException
protected org.apache.catalina.User getUser(org.apache.catalina.users.MemoryUserDatabase database, String identifier)
protected org.apache.catalina.Role getRole(org.apache.catalina.users.MemoryUserDatabase database, String identifier)
protected org.jboss.errai.security.shared.api.identity.User createUser(org.apache.catalina.User user, Iterator<org.apache.catalina.Role> groups)
protected org.jboss.errai.security.shared.api.Group createGroup(org.apache.catalina.Role group)
protected org.jboss.errai.security.shared.api.Role createRole(org.apache.catalina.Role group)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.