Package com.google.cloud.hadoop.util
Enum HadoopCredentialsConfiguration.AuthenticationType
- java.lang.Object
-
- java.lang.Enum<HadoopCredentialsConfiguration.AuthenticationType>
-
- com.google.cloud.hadoop.util.HadoopCredentialsConfiguration.AuthenticationType
-
- All Implemented Interfaces:
Serializable
,Comparable<HadoopCredentialsConfiguration.AuthenticationType>
- Enclosing class:
- HadoopCredentialsConfiguration
public static enum HadoopCredentialsConfiguration.AuthenticationType extends Enum<HadoopCredentialsConfiguration.AuthenticationType>
Enumerates all supported authentication types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_TOKEN_PROVIDER
ConfiguresAccessTokenProvider
authenticationAPPLICATION_DEFAULT
Configures Application Default Credentials authenticationCOMPUTE_ENGINE
Configures Google Compute Engine service account authenticationSERVICE_ACCOUNT_JSON_KEYFILE
Configures JSON keyfile service account authenticationUNAUTHENTICATED
Configures unauthenticated accessUSER_CREDENTIALS
Configures user credentials authenticationWORKLOAD_IDENTITY_FEDERATION_CREDENTIAL_CONFIG_FILE
Configures workload identity pool key file
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HadoopCredentialsConfiguration.AuthenticationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static HadoopCredentialsConfiguration.AuthenticationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS_TOKEN_PROVIDER
public static final HadoopCredentialsConfiguration.AuthenticationType ACCESS_TOKEN_PROVIDER
ConfiguresAccessTokenProvider
authentication
-
APPLICATION_DEFAULT
public static final HadoopCredentialsConfiguration.AuthenticationType APPLICATION_DEFAULT
Configures Application Default Credentials authentication
-
COMPUTE_ENGINE
public static final HadoopCredentialsConfiguration.AuthenticationType COMPUTE_ENGINE
Configures Google Compute Engine service account authentication
-
SERVICE_ACCOUNT_JSON_KEYFILE
public static final HadoopCredentialsConfiguration.AuthenticationType SERVICE_ACCOUNT_JSON_KEYFILE
Configures JSON keyfile service account authentication
-
WORKLOAD_IDENTITY_FEDERATION_CREDENTIAL_CONFIG_FILE
public static final HadoopCredentialsConfiguration.AuthenticationType WORKLOAD_IDENTITY_FEDERATION_CREDENTIAL_CONFIG_FILE
Configures workload identity pool key file
-
UNAUTHENTICATED
public static final HadoopCredentialsConfiguration.AuthenticationType UNAUTHENTICATED
Configures unauthenticated access
-
USER_CREDENTIALS
public static final HadoopCredentialsConfiguration.AuthenticationType USER_CREDENTIALS
Configures user credentials authentication
-
-
Method Detail
-
values
public static HadoopCredentialsConfiguration.AuthenticationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HadoopCredentialsConfiguration.AuthenticationType c : HadoopCredentialsConfiguration.AuthenticationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HadoopCredentialsConfiguration.AuthenticationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-