Interface UsernameToBindDnConverter

All Known Implementing Classes:
UsernameToBindDnConverter.ByDomainEmail, UsernameToBindDnConverter.ByUserRdnAttribute
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface UsernameToBindDnConverter
Converts a username (like 'foobar') into it's bind dn (like 'uid=foobar,ou=people,dc=example,dc=org').
Author:
Christian Bremer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Converts a username (like 'foobar') into it's (active directory) bind dn (like 'foobar@example.org').
    static class 
    The type By user rdn attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(String username)
    Converts a username (like 'foobar') into it's bind dn (like 'uid=foobar,ou=people,dc=example,dc=org').
  • Method Details

    • convert

      String convert(String username)
      Converts a username (like 'foobar') into it's bind dn (like 'uid=foobar,ou=people,dc=example,dc=org').
      Parameters:
      username - the username
      Returns:
      the bind dn