- 2.65.0 (latest)
- 2.64.1
- 2.63.2
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class JwtLocation.Builder extends GeneratedMessage.Builder<JwtLocation.Builder> implements JwtLocationOrBuilderSpecifies a location to extract JWT from an API request.
Protobuf type google.api.JwtLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > JwtLocation.BuilderImplements
JwtLocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public JwtLocation build()| Returns | |
|---|---|
| Type | Description |
JwtLocation |
|
buildPartial()
public JwtLocation buildPartial()| Returns | |
|---|---|
| Type | Description |
JwtLocation |
|
clear()
public JwtLocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
|
clearCookie()
public JwtLocation.Builder clearCookie()Specifies cookie name to extract JWT token.
string cookie = 4;
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
clearHeader()
public JwtLocation.Builder clearHeader()Specifies HTTP header name to extract JWT token.
string header = 1;
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
clearIn()
public JwtLocation.Builder clearIn()| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
|
clearQuery()
public JwtLocation.Builder clearQuery()Specifies URL query parameter name to extract JWT token.
string query = 2;
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
clearValuePrefix()
public JwtLocation.Builder clearValuePrefix()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.
string value_prefix = 3;
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
getCookie()
public String getCookie()Specifies cookie name to extract JWT token.
string cookie = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The cookie. |
getCookieBytes()
public ByteString getCookieBytes()Specifies cookie name to extract JWT token.
string cookie = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cookie. |
getDefaultInstanceForType()
public JwtLocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
JwtLocation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeader()
public String getHeader()Specifies HTTP header name to extract JWT token.
string header = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The header. |
getHeaderBytes()
public ByteString getHeaderBytes()Specifies HTTP header name to extract JWT token.
string header = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for header. |
getInCase()
public JwtLocation.InCase getInCase()| Returns | |
|---|---|
| Type | Description |
JwtLocation.InCase |
|
getQuery()
public String getQuery()Specifies URL query parameter name to extract JWT token.
string query = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The query. |
getQueryBytes()
public ByteString getQueryBytes()Specifies URL query parameter name to extract JWT token.
string query = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for query. |
getValuePrefix()
public String getValuePrefix()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.
string value_prefix = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The valuePrefix. |
getValuePrefixBytes()
public ByteString getValuePrefixBytes()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.
string value_prefix = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for valuePrefix. |
hasCookie()
public boolean hasCookie()Specifies cookie name to extract JWT token.
string cookie = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cookie field is set. |
hasHeader()
public boolean hasHeader()Specifies HTTP header name to extract JWT token.
string header = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the header field is set. |
hasQuery()
public boolean hasQuery()Specifies URL query parameter name to extract JWT token.
string query = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the query field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(JwtLocation other)
public JwtLocation.Builder mergeFrom(JwtLocation other)| Parameter | |
|---|---|
| Name | Description |
other |
JwtLocation |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public JwtLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public JwtLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
|
setCookie(String value)
public JwtLocation.Builder setCookie(String value)Specifies cookie name to extract JWT token.
string cookie = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cookie to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setCookieBytes(ByteString value)
public JwtLocation.Builder setCookieBytes(ByteString value)Specifies cookie name to extract JWT token.
string cookie = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cookie to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setHeader(String value)
public JwtLocation.Builder setHeader(String value)Specifies HTTP header name to extract JWT token.
string header = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe header to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setHeaderBytes(ByteString value)
public JwtLocation.Builder setHeaderBytes(ByteString value)Specifies HTTP header name to extract JWT token.
string header = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for header to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setQuery(String value)
public JwtLocation.Builder setQuery(String value)Specifies URL query parameter name to extract JWT token.
string query = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe query to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public JwtLocation.Builder setQueryBytes(ByteString value)Specifies URL query parameter name to extract JWT token.
string query = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for query to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setValuePrefix(String value)
public JwtLocation.Builder setValuePrefix(String value)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.
string value_prefix = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe valuePrefix to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |
setValuePrefixBytes(ByteString value)
public JwtLocation.Builder setValuePrefixBytes(ByteString value)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.
string value_prefix = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for valuePrefix to set. |
| Returns | |
|---|---|
| Type | Description |
JwtLocation.Builder |
This builder for chaining. |