org.apache.storm.security.auth

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

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

- - ### Method Detail

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

Copyright © 2019 The Apache Software Foundation. All rights reserved.