Package org.apache.storm.security.auth
Interface IPrincipalToLocal
- All Known Implementing Classes:
DefaultPrincipalToLocal
,KerberosPrincipalToLocal
public interface 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.
-
Method Summary
-
Method Details
-
prepare
Invoked once immediately after construction.- Parameters:
topoConf
- Storm configuration
-
toLocal
Convert a Principal to a local user name.- Parameters:
principal
- the principal to convert- Returns:
- The local user name.
-
toLocal
-