Package com.nimbusds.oauth2.sdk.ciba
Class CIBARequest.Builder
java.lang.Object
com.nimbusds.oauth2.sdk.ciba.CIBARequest.Builder
- Enclosing class:
- CIBARequest
Builder for constructing CIBA requests.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(ClientAuthentication clientAuth, com.nimbusds.jwt.SignedJWT signedRequest) Creates a new CIBA signed request builder.Builder(ClientAuthentication clientAuth, Scope scope) Creates a new CIBA request builder.Builder(CIBARequest request) Creates a new CIBA request builder from the specified request. -
Method Summary
Modifier and TypeMethodDescriptionSets the requested Authentication Context Class Reference values.authorizationDetails(List<AuthorizationDetail> authorizationDetails) Sets the Rich Authorisation Request (RAR) details.bindingMessage(String bindingMessage) Sets the human-readable binding message for the display at the consumption and authentication devices.build()Builds a new CIBA request.claims(OIDCClaimsRequest claims) Sets the individual OpenID claims to be returned.claimsLocales(List<com.nimbusds.langtag.LangTag> claimsLocales) Sets the end-user's preferred languages and scripts for the claims being returned, ordered by preference.Sets the client notification token, required for the CIBA ping and push token delivery modes.context(net.minidev.json.JSONObject requestContext) Sets the request context.customParameter(String name, String... values) Sets a custom parameter.endpointURI(URI endpoint) Sets the URI of the CIBA endpoint.idTokenHint(com.nimbusds.jwt.JWT idTokenHint) Sets the ID Token hint, passed as a hint to identify the end-user for whom authentication is being requested.Sets the login hint (email address, phone number, etc.), about the end-user for whom authentication is being requested.loginHintToken(LoginHintToken loginHintToken) Sets the login hint token, containing information identifying the end-user for whom authentication is being requested.loginHintTokenString(String loginHintTokenString) Deprecated.Sets the transaction specific purpose.requestedExpiry(Integer requestedExpiry) Sets the requested expiration for theauth_req_id.Sets the resource server URI.Sets the resource server URI(s).Gets the user secret code (password, PIN, etc.) to authorise the CIBA request with the authentication device.
-
Constructor Details
-
Builder
Creates a new CIBA request builder.- Parameters:
clientAuth- The client authentication. Must not benull.scope- The requested scope,nullif not specified.
-
Builder
Creates a new CIBA signed request builder.- Parameters:
clientAuth- The client authentication. Must not benull.signedRequest- The signed request JWT. Must not benull.
-
Builder
Creates a new CIBA request builder from the specified request.- Parameters:
request- The CIBA request. Must not benull.
-
-
Method Details
-
clientNotificationToken
Sets the client notification token, required for the CIBA ping and push token delivery modes. Corresponds to theclient_notification_tokenparameter.- Parameters:
token- The client notification token,nullif not specified.- Returns:
- This builder.
-
acrValues
Sets the requested Authentication Context Class Reference values. Corresponds to the optionalacr_valuesparameter.- Parameters:
acrValues- The requested ACR values,nullif not specified.- Returns:
- This builder.
-
loginHintToken
Sets the login hint token, containing information identifying the end-user for whom authentication is being requested. Corresponds to thelogin_hint_tokenparameter.- Parameters:
loginHintToken- The login hint token,nullif not specified.- Returns:
- This builder.
-
loginHintTokenString
Deprecated.Sets the login hint token string, containing information identifying the end-user for whom authentication is being requested. Corresponds to thelogin_hint_tokenparameter.- Parameters:
loginHintTokenString- The login hint token string,nullif not specified.- Returns:
- This builder.
-
idTokenHint
Sets the ID Token hint, passed as a hint to identify the end-user for whom authentication is being requested. Corresponds to theid_token_hintparameter.- Parameters:
idTokenHint- The ID Token hint,nullif not specified.- Returns:
- This builder.
-
loginHint
Sets the login hint (email address, phone number, etc.), about the end-user for whom authentication is being requested. Corresponds to thelogin_hintparameter.- Parameters:
loginHint- The login hint,nullif not specified.- Returns:
- This builder.
-
bindingMessage
Sets the human-readable binding message for the display at the consumption and authentication devices. Corresponds to thebinding_messageparameter.- Parameters:
bindingMessage- The binding message,nullif not specified.- Returns:
- This builder.
-
userCode
Gets the user secret code (password, PIN, etc.) to authorise the CIBA request with the authentication device. Corresponds to theuser_codeparameter.- Parameters:
userCode- The user code,nullif not specified.- Returns:
- This builder.
-
requestedExpiry
Sets the requested expiration for theauth_req_id. Corresponds to therequested_expiryparameter.- Parameters:
requestedExpiry- The required expiry (as positive integer),nullif not specified.- Returns:
- This builder.
-
claims
Sets the individual OpenID claims to be returned. Corresponds to the optionalclaimsparameter.- Parameters:
claims- The individual OpenID claims to be returned,nullif not specified.- Returns:
- This builder.
-
claimsLocales
Sets the end-user's preferred languages and scripts for the claims being returned, ordered by preference. Corresponds to the optionalclaims_localesparameter.- Parameters:
claimsLocales- The preferred claims locales,nullif not specified.- Returns:
- This builder.
-
purpose
Sets the transaction specific purpose. Corresponds to the optionalpurposeparameter.- Parameters:
purpose- The purpose,nullif not specified.- Returns:
- This builder.
-
authorizationDetails
Sets the Rich Authorisation Request (RAR) details.- Parameters:
authorizationDetails- The authorisation details,nullif not specified.- Returns:
- This builder.
-
resource
Sets the resource server URI.- Parameters:
resource- The resource URI,nullif not specified.- Returns:
- This builder.
-
resources
Sets the resource server URI(s).- Parameters:
resources- The resource URI(s),nullif not specified.- Returns:
- This builder.
-
context
Sets the request context.- Parameters:
requestContext- The request context,nullif not specified.- Returns:
- This builder.
-
customParameter
Sets a custom parameter.- Parameters:
name- The parameter name. Must not benull.values- The parameter values,nullif not specified.- Returns:
- This builder.
-
endpointURI
Sets the URI of the CIBA endpoint.- Parameters:
endpoint- The URI of the CIBA endpoint. May benullif theCIBARequest.toHTTPRequest()method is not going to be used.- Returns:
- This builder.
-
build
Builds a new CIBA request.- Returns:
- The CIBA request.
-