public class SecurityListener extends java.lang.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.
|
java.lang.String |
getCheckedOsUsers()
Returns the current list of operating system users not permitted to run
Tomcat.
|
java.lang.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(java.lang.String userNameList)
Set the list of operating system users not permitted to run Tomcat.
|
void |
setMinimumUmask(java.lang.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(java.lang.String userNameList)
userNameList
- A comma separated list of operating system users not
permitted to run Tomcatpublic java.lang.String getCheckedOsUsers()
public void setMinimumUmask(java.lang.String umask)
umask
- The 4-digit umask as returned by the OS command umaskpublic java.lang.String getMinimumUmask()
protected void doChecks()
protected void checkOsUser()
protected void checkUmask()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.