public class EnvVarIDTokenSource extends Object implements IDTokenSource
IDTokenSource that reads the ID token from an environment variable.| Constructor and Description |
|---|
EnvVarIDTokenSource(String envVarName,
Environment env)
Creates a new EnvVarIDTokenSource that reads from the specified environment variable.
|
| Modifier and Type | Method and Description |
|---|---|
IDToken |
getIDToken(String audience)
Retrieves an ID Token from the environment variable.
|
public EnvVarIDTokenSource(String envVarName, Environment env)
envVarName - The name of the environment variable to read the ID token from.env - The environment to read variables from.public IDToken getIDToken(String audience)
getIDToken in interface IDTokenSourceaudience - The intended recipient of the ID Token (unused in this implementation).IDToken containing the token value from the environment variable.IllegalArgumentException - if the environment variable name is null or empty.DatabricksException - if the environment variable is not set or is empty.Copyright © 2025. All rights reserved.