Class HttpBearerConfig
java.lang.Object
com.google.genai.gaos.models.credentials.HttpBearerConfig
- All Implemented Interfaces:
CredentialCreateParams
HttpBearerConfig
Configuration for HTTP Bearer token credentials.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpBearerConfig(String id, String token) HttpBearerConfig(String headerName, String id, String prefix, String token) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpBearerConfig.Builderbuilder()booleaninthashCode()Optional.id()prefix()Optional.token()Required.toString()type()withHeaderName(String headerName) Optional.withPrefix(String prefix) Optional.Required.
-
Constructor Details
-
HttpBearerConfig
-
HttpBearerConfig
-
-
Method Details
-
headerName
Optional. Header name to inject the token into. Defaults to 'Authorization'. -
id
-
prefix
Optional. Prefix to prepend to the token. Defaults to 'Bearer'.Set to '' for no prefix.
-
token
Required. Input only. The static bearer token.Write-only; never returned in responses.
-
type
- Specified by:
typein interfaceCredentialCreateParams
-
builder
-
withHeaderName
Optional. Header name to inject the token into. Defaults to 'Authorization'. -
withId
-
withPrefix
Optional. Prefix to prepend to the token. Defaults to 'Bearer'.Set to '' for no prefix.
-
withToken
Required. Input only. The static bearer token.Write-only; never returned in responses.
-
equals
-
hashCode
public int hashCode() -
toString
-