Class Message

Object
se.curity.identityserver.sdk.haapi.Message
Direct Known Subclasses:
Message.Key, Message.Literal

public abstract class Message extends Object
Representation of a message that should be presented to the user of the client application.
Since:
5.4.0
  • Method Details

    • ofKey

      public static Message ofKey(String key)
      Creates a Message given a localization key.
      Parameters:
      key - the localization key for the message.
      Returns:
      the resulting message.
    • ofKey

      public static Message ofKey(String key, @Nullable String... values)
      Creates a Message given a localization key for a template and set of literal values.
      Parameters:
      key - the localization key for the template.
      values - the values to be used on the template's placeholders.
      Returns:
      the resulting message.
    • ofLiteral

      public static Message ofLiteral(String value)
      Creates a Message given a literal String.
      Parameters:
      value - the literal value for the message.
      Returns:
      the resulting message.