public static class AuthenticationRequest.Builder extends Object
Constructor and Description |
---|
AuthenticationRequest.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 |
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 |
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 AuthenticationRequest.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
.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 build()
Copyright © 2014 Connect2id Ltd.. All Rights Reserved.