public class SecurityListener extends Object implements LifecycleListener
Constructor and Description |
---|
SecurityListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkOsUser() |
protected void |
checkUmask() |
protected void |
doChecks()
Execute the security checks.
|
String |
getCheckedOsUsers()
Returns the current list of operating system users not permitted to run
Tomcat.
|
String |
getMinimumUmask()
Get the minimum umask that must be configured before Tomcat will start.
|
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setCheckedOsUsers(String userNameList)
Set the list of operating system users not permitted to run Tomcat.
|
void |
setMinimumUmask(String umask)
Set the minimum umask that must be configured before Tomcat will start.
|
public void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredpublic void setCheckedOsUsers(String userNameList)
userNameList
- A comma separated list of operating system users not
permitted to run Tomcatpublic String getCheckedOsUsers()
public void setMinimumUmask(String umask)
umask
- The 4-digit umask as returned by the OS command umaskpublic String getMinimumUmask()
protected void doChecks()
protected void checkOsUser()
protected void checkUmask()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.