public static final class AuthProvider.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder> implements AuthProviderOrBuilder
Configuration for an authentication provider, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).Protobuf type
google.api.AuthProvider| Modifier and Type | Method and Description |
|---|---|
AuthProvider.Builder |
addAllJwtLocations(Iterable<? extends JwtLocation> values)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
addJwtLocations(int index,
JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
addJwtLocations(int index,
JwtLocation value)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
addJwtLocations(JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
addJwtLocations(JwtLocation value)
Defines the locations to extract the JWT.
|
JwtLocation.Builder |
addJwtLocationsBuilder()
Defines the locations to extract the JWT.
|
JwtLocation.Builder |
addJwtLocationsBuilder(int index)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AuthProvider |
build() |
AuthProvider |
buildPartial() |
AuthProvider.Builder |
clear() |
AuthProvider.Builder |
clearAudiences()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
AuthProvider.Builder |
clearAuthorizationUrl()
Redirect URL if JWT token is required but not present or is expired.
|
AuthProvider.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AuthProvider.Builder |
clearId()
The unique identifier of the auth provider.
|
AuthProvider.Builder |
clearIssuer()
Identifies the principal that issued the JWT.
|
AuthProvider.Builder |
clearJwksUri()
URL of the provider's public key set to validate signature of the JWT.
|
AuthProvider.Builder |
clearJwtLocations()
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AuthProvider.Builder |
clone() |
String |
getAudiences()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
com.google.protobuf.ByteString |
getAudiencesBytes()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
String |
getAuthorizationUrl()
Redirect URL if JWT token is required but not present or is expired.
|
com.google.protobuf.ByteString |
getAuthorizationUrlBytes()
Redirect URL if JWT token is required but not present or is expired.
|
AuthProvider |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getId()
The unique identifier of the auth provider.
|
com.google.protobuf.ByteString |
getIdBytes()
The unique identifier of the auth provider.
|
String |
getIssuer()
Identifies the principal that issued the JWT.
|
com.google.protobuf.ByteString |
getIssuerBytes()
Identifies the principal that issued the JWT.
|
String |
getJwksUri()
URL of the provider's public key set to validate signature of the JWT.
|
com.google.protobuf.ByteString |
getJwksUriBytes()
URL of the provider's public key set to validate signature of the JWT.
|
JwtLocation |
getJwtLocations(int index)
Defines the locations to extract the JWT.
|
JwtLocation.Builder |
getJwtLocationsBuilder(int index)
Defines the locations to extract the JWT.
|
List<JwtLocation.Builder> |
getJwtLocationsBuilderList()
Defines the locations to extract the JWT.
|
int |
getJwtLocationsCount()
Defines the locations to extract the JWT.
|
List<JwtLocation> |
getJwtLocationsList()
Defines the locations to extract the JWT.
|
JwtLocationOrBuilder |
getJwtLocationsOrBuilder(int index)
Defines the locations to extract the JWT.
|
List<? extends JwtLocationOrBuilder> |
getJwtLocationsOrBuilderList()
Defines the locations to extract the JWT.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AuthProvider.Builder |
mergeFrom(AuthProvider other) |
AuthProvider.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AuthProvider.Builder |
mergeFrom(com.google.protobuf.Message other) |
AuthProvider.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AuthProvider.Builder |
removeJwtLocations(int index)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
setAudiences(String value)
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
AuthProvider.Builder |
setAudiencesBytes(com.google.protobuf.ByteString value)
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
AuthProvider.Builder |
setAuthorizationUrl(String value)
Redirect URL if JWT token is required but not present or is expired.
|
AuthProvider.Builder |
setAuthorizationUrlBytes(com.google.protobuf.ByteString value)
Redirect URL if JWT token is required but not present or is expired.
|
AuthProvider.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AuthProvider.Builder |
setId(String value)
The unique identifier of the auth provider.
|
AuthProvider.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The unique identifier of the auth provider.
|
AuthProvider.Builder |
setIssuer(String value)
Identifies the principal that issued the JWT.
|
AuthProvider.Builder |
setIssuerBytes(com.google.protobuf.ByteString value)
Identifies the principal that issued the JWT.
|
AuthProvider.Builder |
setJwksUri(String value)
URL of the provider's public key set to validate signature of the JWT.
|
AuthProvider.Builder |
setJwksUriBytes(com.google.protobuf.ByteString value)
URL of the provider's public key set to validate signature of the JWT.
|
AuthProvider.Builder |
setJwtLocations(int index,
JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
setJwtLocations(int index,
JwtLocation value)
Defines the locations to extract the JWT.
|
AuthProvider.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AuthProvider.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AuthProvider build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AuthProvider buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AuthProvider.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthProvider.Builder>public AuthProvider.Builder mergeFrom(AuthProvider other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public AuthProvider.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthProvider.Builder>IOExceptionpublic String getId()
The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth".
string id = 1;getId in interface AuthProviderOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth".
string id = 1;getIdBytes in interface AuthProviderOrBuilderpublic AuthProvider.Builder setId(String value)
The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth".
string id = 1;value - The id to set.public AuthProvider.Builder clearId()
The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth".
string id = 1;public AuthProvider.Builder setIdBytes(com.google.protobuf.ByteString value)
The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth".
string id = 1;value - The bytes for id to set.public String getIssuer()
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
string issuer = 2;getIssuer in interface AuthProviderOrBuilderpublic com.google.protobuf.ByteString getIssuerBytes()
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
string issuer = 2;getIssuerBytes in interface AuthProviderOrBuilderpublic AuthProvider.Builder setIssuer(String value)
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
string issuer = 2;value - The issuer to set.public AuthProvider.Builder clearIssuer()
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
string issuer = 2;public AuthProvider.Builder setIssuerBytes(com.google.protobuf.ByteString value)
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
string issuer = 2;value - The bytes for issuer to set.public String getJwksUri()
URL of the provider's public key set to validate signature of the JWT. See
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
Optional if the key set document:
- can be retrieved from
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
of the issuer.
- can be inferred from the email domain of the issuer (e.g. a Google
service account).
Example: https://www.googleapis.com/oauth2/v1/certs
string jwks_uri = 3;getJwksUri in interface AuthProviderOrBuilderpublic com.google.protobuf.ByteString getJwksUriBytes()
URL of the provider's public key set to validate signature of the JWT. See
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
Optional if the key set document:
- can be retrieved from
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
of the issuer.
- can be inferred from the email domain of the issuer (e.g. a Google
service account).
Example: https://www.googleapis.com/oauth2/v1/certs
string jwks_uri = 3;getJwksUriBytes in interface AuthProviderOrBuilderpublic AuthProvider.Builder setJwksUri(String value)
URL of the provider's public key set to validate signature of the JWT. See
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
Optional if the key set document:
- can be retrieved from
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
of the issuer.
- can be inferred from the email domain of the issuer (e.g. a Google
service account).
Example: https://www.googleapis.com/oauth2/v1/certs
string jwks_uri = 3;value - The jwksUri to set.public AuthProvider.Builder clearJwksUri()
URL of the provider's public key set to validate signature of the JWT. See
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
Optional if the key set document:
- can be retrieved from
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
of the issuer.
- can be inferred from the email domain of the issuer (e.g. a Google
service account).
Example: https://www.googleapis.com/oauth2/v1/certs
string jwks_uri = 3;public AuthProvider.Builder setJwksUriBytes(com.google.protobuf.ByteString value)
URL of the provider's public key set to validate signature of the JWT. See
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
Optional if the key set document:
- can be retrieved from
[OpenID
Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
of the issuer.
- can be inferred from the email domain of the issuer (e.g. a Google
service account).
Example: https://www.googleapis.com/oauth2/v1/certs
string jwks_uri = 3;value - The bytes for jwksUri to set.public String getAudiences()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, JWTs with audiences:
- "https://[service.name]/[google.protobuf.Api.name]"
- "https://[service.name]/"
will be accepted.
For example, if no audiences are in the setting, LibraryService API will
accept JWTs with the following audiences:
-
https://library-example.googleapis.com/google.example.library.v1.LibraryService
- https://library-example.googleapis.com/
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
string audiences = 4;getAudiences in interface AuthProviderOrBuilderpublic com.google.protobuf.ByteString getAudiencesBytes()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, JWTs with audiences:
- "https://[service.name]/[google.protobuf.Api.name]"
- "https://[service.name]/"
will be accepted.
For example, if no audiences are in the setting, LibraryService API will
accept JWTs with the following audiences:
-
https://library-example.googleapis.com/google.example.library.v1.LibraryService
- https://library-example.googleapis.com/
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
string audiences = 4;getAudiencesBytes in interface AuthProviderOrBuilderpublic AuthProvider.Builder setAudiences(String value)
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, JWTs with audiences:
- "https://[service.name]/[google.protobuf.Api.name]"
- "https://[service.name]/"
will be accepted.
For example, if no audiences are in the setting, LibraryService API will
accept JWTs with the following audiences:
-
https://library-example.googleapis.com/google.example.library.v1.LibraryService
- https://library-example.googleapis.com/
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
string audiences = 4;value - The audiences to set.public AuthProvider.Builder clearAudiences()
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, JWTs with audiences:
- "https://[service.name]/[google.protobuf.Api.name]"
- "https://[service.name]/"
will be accepted.
For example, if no audiences are in the setting, LibraryService API will
accept JWTs with the following audiences:
-
https://library-example.googleapis.com/google.example.library.v1.LibraryService
- https://library-example.googleapis.com/
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
string audiences = 4;public AuthProvider.Builder setAudiencesBytes(com.google.protobuf.ByteString value)
The list of JWT
[audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, JWTs with audiences:
- "https://[service.name]/[google.protobuf.Api.name]"
- "https://[service.name]/"
will be accepted.
For example, if no audiences are in the setting, LibraryService API will
accept JWTs with the following audiences:
-
https://library-example.googleapis.com/google.example.library.v1.LibraryService
- https://library-example.googleapis.com/
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
string audiences = 4;value - The bytes for audiences to set.public String getAuthorizationUrl()
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
string authorization_url = 5;getAuthorizationUrl in interface AuthProviderOrBuilderpublic com.google.protobuf.ByteString getAuthorizationUrlBytes()
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
string authorization_url = 5;getAuthorizationUrlBytes in interface AuthProviderOrBuilderpublic AuthProvider.Builder setAuthorizationUrl(String value)
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
string authorization_url = 5;value - The authorizationUrl to set.public AuthProvider.Builder clearAuthorizationUrl()
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
string authorization_url = 5;public AuthProvider.Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value)
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
string authorization_url = 5;value - The bytes for authorizationUrl to set.public List<JwtLocation> getJwtLocationsList()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;getJwtLocationsList in interface AuthProviderOrBuilderpublic int getJwtLocationsCount()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;getJwtLocationsCount in interface AuthProviderOrBuilderpublic JwtLocation getJwtLocations(int index)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;getJwtLocations in interface AuthProviderOrBuilderpublic AuthProvider.Builder setJwtLocations(int index, JwtLocation value)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder setJwtLocations(int index, JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder addJwtLocations(JwtLocation value)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder addJwtLocations(int index, JwtLocation value)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder addJwtLocations(JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder addJwtLocations(int index, JwtLocation.Builder builderForValue)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder addAllJwtLocations(Iterable<? extends JwtLocation> values)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder clearJwtLocations()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public AuthProvider.Builder removeJwtLocations(int index)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public JwtLocation.Builder getJwtLocationsBuilder(int index)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public JwtLocationOrBuilder getJwtLocationsOrBuilder(int index)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;getJwtLocationsOrBuilder in interface AuthProviderOrBuilderpublic List<? extends JwtLocationOrBuilder> getJwtLocationsOrBuilderList()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;getJwtLocationsOrBuilderList in interface AuthProviderOrBuilderpublic JwtLocation.Builder addJwtLocationsBuilder()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public JwtLocation.Builder addJwtLocationsBuilder(int index)
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public List<JwtLocation.Builder> getJwtLocationsBuilderList()
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
- header: Authorization
value_prefix: "Bearer "
- header: x-goog-iap-jwt-assertion
- query: access_token
repeated .google.api.JwtLocation jwt_locations = 6;public final AuthProvider.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>public final AuthProvider.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthProvider.Builder>Copyright © 2021 Google LLC. All rights reserved.