Package org.apache.storm.security.auth

## 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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `KerberosPrincipalToLocal()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `prepare​(Map<String,​Object> topoConf)` | Invoked once immediately after construction.
    `String` | `toLocal​(String principal)` | Convert a Principal to a local user name.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.storm.security.auth.IPrincipalToLocal

      `toLocal`

- - ### Constructor Detail

    - #### KerberosPrincipalToLocal

          public KerberosPrincipalToLocal()

  - ### Method Detail

    - #### 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.