Class UsernamePasswordRequired
- java.lang.Object
-
- com.pingidentity.sdk.api.authn.model.state.UsernamePasswordRequired
-
- All Implemented Interfaces:
CaptchaEnabledState,CaptchaProviderEnabledState,ThisIsMyDeviceState,Serializable
public class UsernamePasswordRequired extends Object implements Serializable, CaptchaEnabledState, ThisIsMyDeviceState, CaptchaProviderEnabledState
An API state model containing additional details for states in which the user's credentials are required.- Since:
- 9.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UsernamePasswordRequired()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAllowUsernameEdits()Get whether the user should be allowed to input a username different from the username hint.List<AlternativeAuthenticationSource>getAlternativeAuthenticationSources()Get the list of alternative authentication sources.Map<String,Object>getCaptchaAttributes()Get the CAPTCHA attributes as provided by the CAPTCHA provider plugin.StringgetCaptchaProviderType()Get the CAPTCHA provider plugin type.StringgetCaptchaSiteKey()Get the CAPTCHA site key assigned to your application by Google.booleangetShowCaptcha()Return true when the 'CAPTCHA' for authentication feature is available.booleangetShowRememberMyUsername()Return true when the 'Remember My Username' option is available.booleangetShowThisIsMyDevice()Return true when the 'This Is My Device' option is available.booleangetThisIsMyDeviceSelected()Return true when the 'This Is My Device' option is currently selected.StringgetUsername()Get the username hint to be presented to the user.booleanisRememberMyUsernameSelected()Return true when the 'Remember My Username' option is currently selected.voidsetAllowUsernameEdits(Boolean allowUsernameEdits)Set whether the user should be allowed to input a username different from the username hint.voidsetAlternativeAuthenticationSources(List<AlternativeAuthenticationSource> alternativeAuthenticationSources)Set the list of alternative authentication sources.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.voidsetRememberMyUsernameSelected(boolean rememberMyUsernameSelected)Set the current selection of the 'Remember My Username' optionvoidsetShowCaptcha(boolean showCaptcha)Set the 'CAPTCHA' for authentication feature availabilityvoidsetShowRememberMyUsername(boolean showRememberMyUsername)Set the 'Remember My Username' option availabilityvoidsetShowThisIsMyDevice(boolean showThisIsMyDevice)Set the 'This Is My Device' option availabilityvoidsetThisIsMyDeviceSelected(boolean thisIsMyDeviceSelected)Set the current selection of the 'This Is My Device' optionvoidsetUsername(String username)Set the username hint to be presented to the user.
-
-
-
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.
-
getAllowUsernameEdits
public Boolean getAllowUsernameEdits()
Get whether the user should be allowed to input a username different from the username hint.
-
setAllowUsernameEdits
public void setAllowUsernameEdits(Boolean allowUsernameEdits)
Set whether the user should be allowed to input a username different from the username hint.
-
getShowRememberMyUsername
public boolean getShowRememberMyUsername()
Return true when the 'Remember My Username' option is available.
-
setShowRememberMyUsername
public void setShowRememberMyUsername(boolean showRememberMyUsername)
Set the 'Remember My Username' option availability
-
isRememberMyUsernameSelected
public boolean isRememberMyUsernameSelected()
Return true when the 'Remember My Username' option is currently selected.
-
setRememberMyUsernameSelected
public void setRememberMyUsernameSelected(boolean rememberMyUsernameSelected)
Set the current selection of the 'Remember My Username' option
-
getShowThisIsMyDevice
public boolean getShowThisIsMyDevice()
Description copied from interface:ThisIsMyDeviceStateReturn true when the 'This Is My Device' option is available.- Specified by:
getShowThisIsMyDevicein interfaceThisIsMyDeviceState
-
setShowThisIsMyDevice
public void setShowThisIsMyDevice(boolean showThisIsMyDevice)
Description copied from interface:ThisIsMyDeviceStateSet the 'This Is My Device' option availability- Specified by:
setShowThisIsMyDevicein interfaceThisIsMyDeviceState
-
getThisIsMyDeviceSelected
public boolean getThisIsMyDeviceSelected()
Return true when the 'This Is My Device' option is currently selected.
-
setThisIsMyDeviceSelected
public void setThisIsMyDeviceSelected(boolean thisIsMyDeviceSelected)
Set the current selection of the 'This Is My Device' option
-
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
public String 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
public void setCaptchaSiteKey(String captchaSiteKey)
Description copied from interface:CaptchaEnabledStateSet the CAPTCHA site key assigned to your application by Google.- Specified by:
setCaptchaSiteKeyin interfaceCaptchaEnabledState
-
getAlternativeAuthenticationSources
public List<AlternativeAuthenticationSource> getAlternativeAuthenticationSources()
Get the list of alternative authentication sources.
-
setAlternativeAuthenticationSources
public void setAlternativeAuthenticationSources(List<AlternativeAuthenticationSource> alternativeAuthenticationSources)
Set the list of alternative authentication sources.
-
getCaptchaProviderType
public String getCaptchaProviderType()
Description copied from interface:CaptchaProviderEnabledStateGet the CAPTCHA provider plugin type.- Specified by:
getCaptchaProviderTypein interfaceCaptchaProviderEnabledState
-
setCaptchaProviderType
public void setCaptchaProviderType(String captchaProviderType)
Description copied from interface:CaptchaProviderEnabledStateSet the CAPTCHA provider plugin type.- Specified by:
setCaptchaProviderTypein interfaceCaptchaProviderEnabledState
-
getCaptchaAttributes
public Map<String,Object> 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
public void setCaptchaAttributes(Map<String,Object> captchaAttributes)
Description copied from interface:CaptchaProviderEnabledStateSet the CAPTCHA attributes as provided by the CAPTCHA provider plugin.- Specified by:
setCaptchaAttributesin interfaceCaptchaProviderEnabledState
-
-