Package org.apache.storm.security.auth
Interface IPrincipalToLocal
-
- All Known Implementing Classes:
DefaultPrincipalToLocal,KerberosPrincipalToLocal,X509CertOrKerberosPrincipalToLocal,X509CertPrincipalToLocal
public interface IPrincipalToLocalStorm 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidprepare(Map<String,Object> topoConf)Invoked once immediately after construction.StringtoLocal(String principalName)default StringtoLocal(Principal principal)Convert a Principal to a local user name.
-
-
-
Method Detail
-
prepare
void prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.- Parameters:
topoConf- Storm configuration
-
toLocal
default String toLocal(Principal principal)
Convert a Principal to a local user name.- Parameters:
principal- the principal to convert- Returns:
- The local user name.
-
-