Service Usage V1 API - Class Google::Api::JwtLocation (v0.6.2)

Reference documentation and code samples for the Service Usage V1 API class Google::Api::JwtLocation.

Specifies a location to extract JWT from an API request.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

defcookie()->::String
Returns
  • (::String) — Specifies cookie name to extract JWT token.
defcookie=(value)->::String
Parameter
  • value (::String) — Specifies cookie name to extract JWT token.
Returns
  • (::String) — Specifies cookie name to extract JWT token.

#header

defheader()->::String
Returns
  • (::String) — Specifies HTTP header name to extract JWT token.

#header=

defheader=(value)->::String
Parameter
  • value (::String) — Specifies HTTP header name to extract JWT token.
Returns
  • (::String) — Specifies HTTP header name to extract JWT token.

#query

defquery()->::String
Returns
  • (::String) — Specifies URL query parameter name to extract JWT token.

#query=

defquery=(value)->::String
Parameter
  • value (::String) — Specifies URL query parameter name to extract JWT token.
Returns
  • (::String) — Specifies URL query parameter name to extract JWT token.

#value_prefix

defvalue_prefix()->::String
Returns
  • (::String) — The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed.

    For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

#value_prefix=

defvalue_prefix=(value)->::String
Parameter
  • value (::String) — The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed.

    For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

Returns
  • (::String) — The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed.

    For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.