public class OpenIdPrompt extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROMPT_CONSENT |
static String |
PROMPT_LOGIN |
static String |
PROMPT_NONE |
static String |
PROMPT_SELECT_ACCOUNT |
Constructor and Description |
---|
OpenIdPrompt(OAuth2Request request)
Constructs a new OpenIdPrompt instance directly from the request object
by using the constant defined in OAuth2Constants and calling the
existing constructor with the string obtained.
|
OpenIdPrompt(String prompt)
Constructs a new OpenIdPrompt instance from the given prompt String.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsConsent()
Determines if the prompt contains 'consent'.
|
boolean |
containsLogin()
Determines if the prompt contains 'login'.
|
boolean |
containsNone()
Determines if the prompt contains 'none'.
|
boolean |
containsSelectAccount()
Determines if the prompt contains 'select_account'.
|
String |
getOriginalValue()
Get to the original value passed in.
|
boolean |
isValid()
Determines whether the prompt parameter is valid.
|
public static final String PROMPT_NONE
public static final String PROMPT_LOGIN
public static final String PROMPT_CONSENT
public static final String PROMPT_SELECT_ACCOUNT
public OpenIdPrompt(String prompt)
prompt
- The prompt.public OpenIdPrompt(OAuth2Request request)
request
- The request objectpublic boolean containsNone()
true
if the prompt includes 'none'.public boolean containsLogin()
true
if the prompt includes 'login'.public boolean containsConsent()
true
if the prompt includes 'consent'.public boolean containsSelectAccount()
true
if the prompt includes 'select_account'.public boolean isValid()
false
if the prompt includes 'none' combined with either 'consent' or 'login', or
'select_account'.public String getOriginalValue()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.