public static final class

OidcProviderConfig.CreateRequest

extends ProviderConfig.AbstractCreateRequest<T extends AbstractCreateRequest<T>>
java.lang.Object
   ↳ com.google.firebase.auth.ProviderConfig.AbstractCreateRequest<T extends com.google.firebase.auth.ProviderConfig.AbstractCreateRequest<T>>
     ↳ com.google.firebase.auth.OidcProviderConfig.CreateRequest

Class Overview

A specification class for creating a new OIDC Auth provider.

Set the initial attributes of the new provider by calling various setter methods available in this class.

Summary

Public Constructors
OidcProviderConfig.CreateRequest()
Creates a new OidcProviderConfig.CreateRequest, which can be used to create a new OIDC Auth provider.
Public Methods
OidcProviderConfig.CreateRequest setClientId(String clientId)
Sets the client ID for the new provider.
OidcProviderConfig.CreateRequest setIssuer(String issuer)
Sets the issuer for the new provider.
OidcProviderConfig.CreateRequest setProviderId(String providerId)
Sets the ID for the new provider.
[Expand]
Inherited Methods
From class com.google.firebase.auth.ProviderConfig.AbstractCreateRequest
From class java.lang.Object

Public Constructors

public OidcProviderConfig.CreateRequest ()

Creates a new OidcProviderConfig.CreateRequest, which can be used to create a new OIDC Auth provider.

The returned object should be passed to createOidcProviderConfig(CreateRequest) to save the config.

Public Methods

public OidcProviderConfig.CreateRequest setClientId (String clientId)

Sets the client ID for the new provider.

Parameters
clientId A non-null, non-empty client ID string.
Throws
IllegalArgumentException If the client ID is null or empty.

public OidcProviderConfig.CreateRequest setIssuer (String issuer)

Sets the issuer for the new provider.

Parameters
issuer A non-null, non-empty issuer URL string.
Throws
IllegalArgumentException If the issuer URL is null or empty, or if the format is invalid.

public OidcProviderConfig.CreateRequest setProviderId (String providerId)

Sets the ID for the new provider.

Parameters
providerId A non-null, non-empty provider ID string.
Throws
IllegalArgumentException If the provider ID is null or empty, or is not prefixed with 'oidc.'.