Interface IPrincipalToLocal

All Known Implementing Classes:
DefaultPrincipalToLocal, KerberosPrincipalToLocal

public interface IPrincipalToLocal
Storm 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

    Modifier and Type
    Method
    Description
    void
    prepare(Map<String,Object> topoConf)
    Invoked once immediately after construction.
    toLocal(String principalName)
     
    default String
    toLocal(Principal principal)
    Convert a Principal to a local user name.
  • Method Details

    • 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.
    • toLocal

      String toLocal(String principalName)