Class IdPCallback.Builder

java.lang.Object
org.forgerock.openam.authentication.callbacks.IdPCallback.Builder
Enclosing class:
IdPCallback

@Supported public static final class IdPCallback.Builder extends Object
Builder for IdPCallback.
  • Method Details

    • withProvider

      @Supported public IdPCallback.Builder withProvider(String provider)
      Set the provider.
      Parameters:
      provider - The provider name
      Returns:
      this builder
    • withClientId

      @Supported public IdPCallback.Builder withClientId(String clientId)
      Set the clientId.
      Parameters:
      clientId - The provider clientId
      Returns:
      this builder
    • withRedirectUri

      @Supported public IdPCallback.Builder withRedirectUri(String redirectUri)
      Set the redirectUri.
      Parameters:
      redirectUri - The provider redirectURI
      Returns:
      this builder
    • withScope

      @Supported public IdPCallback.Builder withScope(List<String> scope)
      Set the scope.
      Parameters:
      scope - The requested scope
      Returns:
      this builder
    • withNonce

      @Supported public IdPCallback.Builder withNonce(String nonce)
      Set the nonce.
      Parameters:
      nonce - Nonce for the Social Login request
      Returns:
      this builder
    • withRequest

      @Supported public IdPCallback.Builder withRequest(String request)
      Set the request.
      Parameters:
      request - The Request Object parameter
      Returns:
      this builder
    • withRequestUri

      @Supported public IdPCallback.Builder withRequestUri(String requestUri)
      Set the requestUri.
      Parameters:
      requestUri - The Request URI parameter
      Returns:
      this builder
    • withAcrValues

      @Supported public IdPCallback.Builder withAcrValues(List<String> acrValues)
      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

      @Supported public IdPCallback build()
      Build the IdPCallback.
      Returns:
      the IdPCallback