public static class AuthenticationRequest.Builder extends Object
| Constructor and Description |
|---|
Builder(ResponseType rt,
Scope scope,
ClientID clientID,
URI redirectURI)
Creates a new OpenID Connect authentication request builder.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationRequest.Builder |
acrValues(List<ACR> acrValues)
Sets the requested Authentication Context Class Reference
values.
|
AuthenticationRequest |
build()
Builds a new authentication request.
|
AuthenticationRequest.Builder |
claims(ClaimsRequest claims)
Sets the individual claims to be returned.
|
AuthenticationRequest.Builder |
claimsLocales(List<com.nimbusds.langtag.LangTag> claimsLocales)
Sets the end-user's preferred languages and scripts for the
claims being returned, ordered by preference.
|
AuthenticationRequest.Builder |
codeChallenge(CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod)
Deprecated.
|
AuthenticationRequest.Builder |
codeChallenge(CodeVerifier codeVerifier,
CodeChallengeMethod codeChallengeMethod)
Sets the code challenge for Proof Key for Code Exchange
(PKCE) by public OAuth clients.
|
AuthenticationRequest.Builder |
customParameter(String name,
String value)
Sets the specified additional custom parameter.
|
AuthenticationRequest.Builder |
display(Display display)
Sets the requested display type.
|
AuthenticationRequest.Builder |
endpointURI(URI uri)
Sets the URI of the endpoint (HTTP or HTTPS) for which the
request is intended.
|
AuthenticationRequest.Builder |
idTokenHint(com.nimbusds.jwt.JWT idTokenHint)
Sets the ID Token hint.
|
AuthenticationRequest.Builder |
loginHint(String loginHint)
Sets the login hint.
|
AuthenticationRequest.Builder |
maxAge(int maxAge)
Sets the required maximum authentication age.
|
AuthenticationRequest.Builder |
nonce(Nonce nonce)
Sets the nonce.
|
AuthenticationRequest.Builder |
prompt(Prompt prompt)
Sets the requested prompt.
|
AuthenticationRequest.Builder |
requestObject(com.nimbusds.jwt.JWT requestObject)
Sets the request object.
|
AuthenticationRequest.Builder |
requestURI(URI requestURI)
Sets the request object URI.
|
AuthenticationRequest.Builder |
responseMode(ResponseMode rm)
Sets the response mode.
|
AuthenticationRequest.Builder |
state(State state)
Sets the state.
|
AuthenticationRequest.Builder |
uiLocales(List<com.nimbusds.langtag.LangTag> uiLocales)
Sets the end-user's preferred languages and scripts for the
user interface, ordered by preference.
|
public Builder(ResponseType rt, Scope scope, ClientID clientID, URI redirectURI)
rt - The response type. Corresponds to the
response_type parameter. Must
specify a valid OpenID Connect response
type. Must not be null.scope - The request scope. Corresponds to the
scope parameter. Must contain an
openid
value. Must not be null.clientID - The client identifier. Corresponds to the
client_id parameter. Must not be
null.redirectURI - The redirection URI. Corresponds to the
redirect_uri parameter. Must not
be null unless set by means of
the optional request_object /
request_uri parameter.public AuthenticationRequest.Builder state(State state)
state
parameter.state - The state, null if not specified.public AuthenticationRequest.Builder endpointURI(URI uri)
uri - The endpoint URI, null if not specified.public AuthenticationRequest.Builder nonce(Nonce nonce)
nonce parameter.nonce - The nonce, null if not specified.public AuthenticationRequest.Builder display(Display display)
display parameter.display - The requested display type, null if
not specified.public AuthenticationRequest.Builder prompt(Prompt prompt)
prompt parameter.prompt - The requested prompt, null if not
specified.public AuthenticationRequest.Builder maxAge(int maxAge)
max_age parameter.maxAge - The maximum authentication age, in seconds; 0
if not specified.public AuthenticationRequest.Builder uiLocales(List<com.nimbusds.langtag.LangTag> uiLocales)
ui_locales parameter.uiLocales - The preferred UI locales, null if
not specified.public AuthenticationRequest.Builder claimsLocales(List<com.nimbusds.langtag.LangTag> claimsLocales)
claims_locales parameter.claimsLocales - The preferred claims locales,
null if not specified.public AuthenticationRequest.Builder idTokenHint(com.nimbusds.jwt.JWT idTokenHint)
id_token_hint parameter.idTokenHint - The ID Token hint, null if not
specified.public AuthenticationRequest.Builder loginHint(String loginHint)
login_hint parameter.loginHint - The login hint, null if not
specified.public AuthenticationRequest.Builder acrValues(List<ACR> acrValues)
acr_values
parameter.acrValues - The requested ACR values, null if
not specified.public AuthenticationRequest.Builder claims(ClaimsRequest claims)
claims parameter.claims - The individual claims to be returned,
null if not specified.public AuthenticationRequest.Builder requestObject(com.nimbusds.jwt.JWT requestObject)
request parameter. Must not be specified together
with a request object URI.null if not specified.public AuthenticationRequest.Builder requestURI(URI requestURI)
request_uri parameter. Must not be specified
together with a request object.requestURI - The request object URI, null if
not specified.public AuthenticationRequest.Builder responseMode(ResponseMode rm)
response_mode parameter. Use of this parameter is
not recommended unless a non-default response mode is
requested (e.g. form_post).rm - The response mode, null if not specified.@Deprecated public AuthenticationRequest.Builder codeChallenge(CodeChallenge codeChallenge, CodeChallengeMethod codeChallengeMethod)
codeChallenge - The code challenge, null
if not specified.codeChallengeMethod - The code challenge method,
null if not specified.public AuthenticationRequest.Builder codeChallenge(CodeVerifier codeVerifier, CodeChallengeMethod codeChallengeMethod)
codeVerifier - The code verifier to use to
compute the code challenge,
null if PKCE is not
specified.codeChallengeMethod - The code challenge method,
null if not specified.
Defaults to
CodeChallengeMethod.PLAIN
if a code verifier is specified.public AuthenticationRequest.Builder customParameter(String name, String value)
name - The parameter name. Must not be null.value - The parameter value, null if not
specified.public AuthenticationRequest build()
Copyright © 2017 Connect2id Ltd.. All rights reserved.