Class NewPasswordRequired
java.lang.Object
com.pingidentity.sdk.api.authn.model.state.NewPasswordRequired
- All Implemented Interfaces:
CaptchaEnabledState,CaptchaProviderEnabledState,Serializable
public class NewPasswordRequired
extends Object
implements Serializable, CaptchaEnabledState, CaptchaProviderEnabledState
An API state model containing additional details for states in which a new user password is required.
- Since:
- 9.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the CAPTCHA attributes as provided by the CAPTCHA provider plugin.Get the CAPTCHA provider plugin type.Get the CAPTCHA site key assigned to your application by Google.booleanReturn true when the 'CAPTCHA' for authentication feature is available.Get the user-facing error message.Get the username hint to be presented to the user.booleanReturn true when the user's existing password is required.voidsetCaptchaAttributes(Map<String, Object> captchaAttributes) Set the CAPTCHA attributes as provided by the CAPTCHA provider plugin.voidsetCaptchaProviderType(String captchaProviderType) Set the CAPTCHA provider plugin type.voidsetCaptchaSiteKey(String captchaSiteKey) Set the CAPTCHA site key assigned to your application by Google.voidsetExistingPasswordRequired(boolean existingPasswordRequired) Set to true when the user's existing password is required.voidsetShowCaptcha(boolean showCaptcha) Set the 'CAPTCHA' for authentication feature availabilityvoidsetUserMessage(String userMessage) Directly set the localized user-facing error message.voidsetUserMessageKey(String userMessageKey) Set the user-facing error message key.voidsetUsername(String username) Set the username hint to be presented to the user.
-
Constructor Details
-
NewPasswordRequired
public NewPasswordRequired()
-
-
Method Details
-
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
Set the username hint to be presented to the user. -
getShowCaptcha
public boolean getShowCaptcha()Description copied from interface:CaptchaEnabledStateReturn true when the 'CAPTCHA' for authentication feature is available.- Specified by:
getShowCaptchain interfaceCaptchaEnabledState- Specified by:
getShowCaptchain interfaceCaptchaProviderEnabledState
-
setShowCaptcha
public void setShowCaptcha(boolean showCaptcha) Description copied from interface:CaptchaEnabledStateSet the 'CAPTCHA' for authentication feature availability- Specified by:
setShowCaptchain interfaceCaptchaEnabledState- Specified by:
setShowCaptchain interfaceCaptchaProviderEnabledState
-
getCaptchaSiteKey
Description copied from interface:CaptchaEnabledStateGet 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:
getCaptchaSiteKeyin interfaceCaptchaEnabledState
-
setCaptchaSiteKey
Description copied from interface:CaptchaEnabledStateSet the CAPTCHA site key assigned to your application by Google.- Specified by:
setCaptchaSiteKeyin interfaceCaptchaEnabledState
-
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 withsetUserMessageKey()or the localized error message can be directly set withsetUserMessage(). -
setUserMessageKey
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
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
-
getCaptchaProviderType
Description copied from interface:CaptchaProviderEnabledStateGet the CAPTCHA provider plugin type.- Specified by:
getCaptchaProviderTypein interfaceCaptchaProviderEnabledState
-
setCaptchaProviderType
Description copied from interface:CaptchaProviderEnabledStateSet the CAPTCHA provider plugin type.- Specified by:
setCaptchaProviderTypein interfaceCaptchaProviderEnabledState
-
getCaptchaAttributes
Description copied from interface:CaptchaProviderEnabledStateGet 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:
getCaptchaAttributesin interfaceCaptchaProviderEnabledState
-
setCaptchaAttributes
Description copied from interface:CaptchaProviderEnabledStateSet the CAPTCHA attributes as provided by the CAPTCHA provider plugin.- Specified by:
setCaptchaAttributesin interfaceCaptchaProviderEnabledState
-