public class KerberosPrincipalToLocal extends Object implements IPrincipalToLocal
Map a kerberos principal to a local user.
Constructor and Description |
---|
KerberosPrincipalToLocal() |
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)
Invoked once immediately after construction.
prepare
in interface IPrincipalToLocal
topoConf
- Storm configurationpublic String toLocal(String principal)
Convert a Principal to a local user name.
toLocal
in interface IPrincipalToLocal
principal
- the principal to convertCopyright © 2022 The Apache Software Foundation. All rights reserved.