Package org.apache.storm.security.auth

## Class X509CertPrincipalToLocal

- java.lang.Object
- - org.apache.storm.security.auth.X509CertPrincipalToLocal

- All Implemented Interfaces:
    `IPrincipalToLocal`

      public class X509CertPrincipalToLocal
      extends Object
      implements IPrincipalToLocal

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static String` | `X509_CERT_PRINCIPAL_TO_LOCAL_REGEX` |

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `prepare​(Map<String,​Object> conf)` | Invoked once immediately after construction.
    `String` | `toLocal​(String principalName)` |

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

- - ### Field Detail

    - #### X509_CERT_PRINCIPAL_TO_LOCAL_REGEX

          public static final String X509_CERT_PRINCIPAL_TO_LOCAL_REGEX

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### X509CertPrincipalToLocal

          public X509CertPrincipalToLocal()

  - ### Method Detail

    - #### prepare

          public void prepare​(Map<String,​Object> conf)

      Description copied from interface: `IPrincipalToLocal`
      Invoked once immediately after construction.
      Specified by:
        `prepare` in interface `IPrincipalToLocal`
      Parameters:
        `conf` - Storm configuration

    - #### toLocal

          public String toLocal​(String principalName)

      Specified by:
        `toLocal` in interface `IPrincipalToLocal`