Package org.apache.storm.security.auth
Class DefaultPrincipalToLocal
java.lang.Object
org.apache.storm.security.auth.DefaultPrincipalToLocal
- All Implemented Interfaces:
- IPrincipalToLocal
Storm can be configured to launch worker processed as a given user. Some transports need to map the Principal to a local user name.
- 
Constructor Details- 
DefaultPrincipalToLocalpublic DefaultPrincipalToLocal()
 
- 
- 
Method Details- 
prepareInvoked once immediately after construction.- Specified by:
- preparein interface- IPrincipalToLocal
- Parameters:
- topoConf- Storm configuration
 
- 
toLocalConvert a Principal to a local user name.- Specified by:
- toLocalin interface- IPrincipalToLocal
- Parameters:
- principal- the principal to convert
- Returns:
- The local user name.
 
 
-