org.keycloak.services.resources.admin

## Class AdminMessageFormatter

- java.lang.Object
- - org.keycloak.services.resources.admin.AdminMessageFormatter

- All Implemented Interfaces:
    BiFunction<String,Object[],String>

      public class AdminMessageFormatter
      extends Object
      implements BiFunction<String,Object[],String>

  Message formatter for Admin GUI/API messages.
  Author:
    Vlastimil Elias

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdminMessageFormatter(KeycloakSession session, UserModel user)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `apply(String s, Object[] objects)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.function.BiFunction

      `andThen`

- - ### Constructor Detail

    - #### AdminMessageFormatter

          public AdminMessageFormatter(KeycloakSession session,
                                       UserModel user)

      Parameters:
        `session` - to get context (including current Realm) from
        `user` - to resolve locale for

  - ### Method Detail

    - #### apply

          public String apply(String s,
                              Object[] objects)

      Specified by:
        `apply` in interface `BiFunction<String,Object[],String>`

Copyright © 2021 JBoss by Red Hat. All rights reserved.