Class NewPasswordRequired

    • Constructor Detail

      • NewPasswordRequired

        public NewPasswordRequired()
    • Method Detail

      • getUsername

        public String getUsername()
        Get the username hint to be presented to the user. This hint may be specified through a parameter on a protocol request or through an authentication policy mapping.
      • setUsername

        public void setUsername​(String username)
        Set the username hint to be presented to the user.
      • getCaptchaSiteKey

        public String getCaptchaSiteKey()
        Description copied from interface: CaptchaEnabledState
        Get the CAPTCHA site key assigned to your application by Google. This field will only be populated if the CAPTCHA provider is reCAPTCHA v2, v3, or Enterprise.
        Specified by:
        getCaptchaSiteKey in interface CaptchaEnabledState
      • getUserMessage

        public String getUserMessage()
        Get the user-facing error message. A user-facing error message should be provided for any error likely to be displayed to the end user. A localizable message key can be provided with setUserMessageKey() or the localized error message can be directly set with setUserMessage().
      • setUserMessageKey

        public void setUserMessageKey​(String userMessageKey)
        Set the user-facing error message key. In the JSON serialization this key will automatically be converted to a localized string if a corresponding message is defined in the authn-api-messages or pingfederate-messages properties file for the user's locale.
      • setUserMessage

        public void setUserMessage​(String userMessage)
        Directly set the localized user-facing error message.
      • isExistingPasswordRequired

        public boolean isExistingPasswordRequired()
        Return true when the user's existing password is required.
        Since:
        10.2
      • setExistingPasswordRequired

        public void setExistingPasswordRequired​(boolean existingPasswordRequired)
        Set to true when the user's existing password is required.
        Since:
        10.2
      • getCaptchaAttributes

        public Map<String,​Object> getCaptchaAttributes()
        Description copied from interface: CaptchaProviderEnabledState
        Get the CAPTCHA attributes as provided by the CAPTCHA provider plugin. The CAPTCHA provider plugin CAPTCHA attributes. Google's reCAPTCHA v2 CAPTCHA provider will provide 'siteKey', Google's reCAPTCHA v3 and reCAPTCHA Enterprise CAPTCHA provider will provide 'siteKey' and 'action' to be able to invoke the challenge.
        Specified by:
        getCaptchaAttributes in interface CaptchaProviderEnabledState