Package com.axelor.auth.pac4j
Class ClientTitles
java.lang.Object
com.axelor.auth.pac4j.ClientTitles
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 Summary
-
Method Details
-
of
Returns the title of the given client, from the first known class of its hierarchy.- Parameters:
client- the client- Returns:
- the title, or
nullif no class of the hierarchy is known
-
of
Returns the title of the client with the given default name.- Parameters:
clientName- the client name- Returns:
- the title, or
nullif the name is unknown
-