Class KerberosPrincipalToLocal

java.lang.Object
org.apache.storm.security.auth.KerberosPrincipalToLocal
All Implemented Interfaces:
IPrincipalToLocal

public class KerberosPrincipalToLocal extends Object implements IPrincipalToLocal
Map a kerberos principal to a local user.
  • Constructor Details

    • KerberosPrincipalToLocal

      public KerberosPrincipalToLocal()
  • Method Details

    • prepare

      public void prepare(Map<String,Object> topoConf)
      Invoked once immediately after construction.
      Specified by:
      prepare in interface IPrincipalToLocal
      Parameters:
      topoConf - Storm configuration
    • toLocal

      public String toLocal(String principal)
      Convert a Principal to a local user name.
      Specified by:
      toLocal in interface IPrincipalToLocal
      Parameters:
      principal - the principal to convert
      Returns:
      The local user name.