public class DefaultPrincipalToLocal extends Object implements IPrincipalToLocal
Constructor and Description |
---|
DefaultPrincipalToLocal() |
Modifier and Type | Method and Description |
---|---|
void |
prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
|
String |
toLocal(String principal)
Convert a Principal to a local user name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toLocal
public void prepare(Map<String,Object> topoConf)
prepare
in interface IPrincipalToLocal
topoConf
- Storm configurationpublic String toLocal(String principal)
toLocal
in interface IPrincipalToLocal
principal
- the principal to convertCopyright © 2023 The Apache Software Foundation. All rights reserved.