Class ClientTitles

java.lang.Object
com.axelor.auth.pac4j.ClientTitles

public final class ClientTitles extends Object
Human-readable names of the Axelor and pac4j authentication clients.

pac4j names a client after its class simple name unless configured otherwise, so clients are matched by class: a renamed or subclassed client still gets the title of the first known class of its hierarchy. Classes are matched by simple name, so that the optional pac4j modules are not required.

  • Method Details

    • of

      public static String of(org.pac4j.core.client.Client client)
      Returns the title of the given client, from the first known class of its hierarchy.
      Parameters:
      client - the client
      Returns:
      the title, or null if no class of the hierarchy is known
    • of

      public static String of(String clientName)
      Returns the title of the client with the given default name.
      Parameters:
      clientName - the client name
      Returns:
      the title, or null if the name is unknown