Class UsernamePasswordRequired
java.lang.Object
com.pingidentity.sdk.api.authn.model.state.UsernamePasswordRequired
- All Implemented Interfaces:
CaptchaEnabledState,CaptchaProviderEnabledState,ClientSideAuthenticatorEnabledState,ThisIsMyDeviceState,Serializable
public class UsernamePasswordRequired
extends Object
implements Serializable, CaptchaEnabledState, ThisIsMyDeviceState, CaptchaProviderEnabledState, ClientSideAuthenticatorEnabledState
An API state model containing additional details for states in which the user's credentials are required.
- Since:
- 9.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet whether the user should be allowed to input a username different from the username hint.Get the list of alternative authentication sources.Get 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.Get the attributes that are required for the client side authenticator to operate.Get the list of javascript filenames that should be loaded for client side authentication.booleanReturn true when the 'CAPTCHA' for authentication feature is available.booleanReturn true when the 'Remember My Username' option is available.booleanReturn true when the 'This Is My Device' option is available.booleanReturn true when the 'This Is My Device' option is currently selected.Get the username hint to be presented to the user.booleanDetermines whether a client side authenticator is enabled for authentication.booleanReturn 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.voidsetAuthenticatorEnabled(boolean enabled) Sets whether a client side authenticator is enabled for authentication.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.voidsetClientSideAuthenticatorAttributes(Map<String, Object> authenticatorAttributes) Sets the attributes that will be used by the associated client side authenticator javascript files.voidsetJavascriptFilenames(List<String> javascriptFilenames) Set the Javascript filesnames that will be required for client side authentication.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.
-
Constructor Details
-
UsernamePasswordRequired
public UsernamePasswordRequired()
-
-
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. -
getAllowUsernameEdits
Get whether the user should be allowed to input a username different from the username hint. -
setAllowUsernameEdits
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
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
-
getAlternativeAuthenticationSources
Get the list of alternative authentication sources. -
setAlternativeAuthenticationSources
public void setAlternativeAuthenticationSources(List<AlternativeAuthenticationSource> alternativeAuthenticationSources) Set the list of alternative authentication sources. -
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
-
isAuthenticatorEnabled
public boolean isAuthenticatorEnabled()Description copied from interface:ClientSideAuthenticatorEnabledStateDetermines whether a client side authenticator is enabled for authentication.- Specified by:
isAuthenticatorEnabledin interfaceClientSideAuthenticatorEnabledState
-
setAuthenticatorEnabled
public void setAuthenticatorEnabled(boolean enabled) Description copied from interface:ClientSideAuthenticatorEnabledStateSets whether a client side authenticator is enabled for authentication.- Specified by:
setAuthenticatorEnabledin interfaceClientSideAuthenticatorEnabledState
-
getClientSideAuthenticatorAttributes
Description copied from interface:ClientSideAuthenticatorEnabledStateGet the attributes that are required for the client side authenticator to operate. These will be used as context for the provided javascript files.- Specified by:
getClientSideAuthenticatorAttributesin interfaceClientSideAuthenticatorEnabledState
-
setClientSideAuthenticatorAttributes
Description copied from interface:ClientSideAuthenticatorEnabledStateSets the attributes that will be used by the associated client side authenticator javascript files.- Specified by:
setClientSideAuthenticatorAttributesin interfaceClientSideAuthenticatorEnabledState
-
getJavascriptFilenames
Description copied from interface:ClientSideAuthenticatorEnabledStateGet the list of javascript filenames that should be loaded for client side authentication. These javascript files names are defined by the client side authenticator class.- Specified by:
getJavascriptFilenamesin interfaceClientSideAuthenticatorEnabledState
-
setJavascriptFilenames
Description copied from interface:ClientSideAuthenticatorEnabledStateSet the Javascript filesnames that will be required for client side authentication.- Specified by:
setJavascriptFilenamesin interfaceClientSideAuthenticatorEnabledState
-