Package org.apache.storm.security.auth
Class KerberosPrincipalToLocal
java.lang.Object
org.apache.storm.security.auth.KerberosPrincipalToLocal
- All Implemented Interfaces:
IPrincipalToLocal
Map a kerberos principal to a local user.
-
Constructor Details
-
KerberosPrincipalToLocal
public KerberosPrincipalToLocal()
-
-
Method Details
-
prepare
Invoked once immediately after construction.- Specified by:
preparein interfaceIPrincipalToLocal- Parameters:
topoConf- Storm configuration
-
toLocal
Convert a Principal to a local user name.- Specified by:
toLocalin interfaceIPrincipalToLocal- Parameters:
principal- the principal to convert- Returns:
- The local user name.
-