Class IdPCallback.Builder
java.lang.Object
org.forgerock.openam.authentication.callbacks.IdPCallback.Builder
- Enclosing class:
- IdPCallback
Builder for IdPCallback.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the IdPCallback.withAcrValues
(List<String> acrValues) Set the acrValues.withClientId
(String clientId) Set the clientId.Set the nonce.withProvider
(String provider) Set the provider.withRedirectUri
(String redirectUri) Set the redirectUri.withRequest
(String request) Set the request.withRequestNativeAppForUserInfo
(boolean requestNativeAppForUserInfo) Set the requestNativeAppForUserInfo.withRequestUri
(String requestUri) Set the requestUri.Set the scope.
-
Method Details
-
withProvider
Set the provider.- Parameters:
provider
- The provider name- Returns:
- this builder
-
withClientId
Set the clientId.- Parameters:
clientId
- The provider clientId- Returns:
- this builder
-
withRedirectUri
Set the redirectUri.- Parameters:
redirectUri
- The provider redirectURI- Returns:
- this builder
-
withScope
Set the scope.- Parameters:
scope
- The requested scope- Returns:
- this builder
-
withNonce
Set the nonce.- Parameters:
nonce
- Nonce for the Social Login request- Returns:
- this builder
-
withRequest
Set the request.- Parameters:
request
- The Request Object parameter- Returns:
- this builder
-
withRequestUri
Set the requestUri.- Parameters:
requestUri
- The Request URI parameter- Returns:
- this builder
-
withAcrValues
Set the acrValues.- Parameters:
acrValues
- The Requested Authentication Context Class Reference values- Returns:
- this builder
-
withRequestNativeAppForUserInfo
@Supported public IdPCallback.Builder withRequestNativeAppForUserInfo(boolean requestNativeAppForUserInfo) Set the requestNativeAppForUserInfo.- Parameters:
requestNativeAppForUserInfo
- Indicates if the Native SDK app should be requested to send user info- Returns:
- this builder
-
build
Build the IdPCallback.- Returns:
- the IdPCallback
-