Class PolicyDescription

java.lang.Object
com.axelor.auth.password.policy.PolicyDescription

public final class PolicyDescription extends Object
Represents a user-facing description of an active password policy requirement, intended for display as guidance on the login or change-password page before the user submits.

Carries the policy ID, a raw translatable message key, and optional format parameters. Use getTranslatedMessage() to obtain the final, translated and formatted string.

See Also:
  • Constructor Details

    • PolicyDescription

      public PolicyDescription(String policyId, String message, Object... parameters)
  • Method Details

    • getPolicyId

      public String getPolicyId()
      Returns the identifier of the policy that produced this description.
    • getMessage

      public String getMessage()
      Returns the raw (untranslated) message key.
    • getParameters

      public Object[] getParameters()
      Returns the format parameters to interpolate into the translated message.
    • getTranslatedMessage

      public String getTranslatedMessage()
      Returns the translated and formatted description string, ready for display.