Interface JwtLocationOrBuilder (2.43.0)

public interface JwtLocationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCookie()

public abstract String getCookie()

Specifies cookie name to extract JWT token.

string cookie = 4;

Returns
Type Description
String

The cookie.

getCookieBytes()

public abstract ByteString getCookieBytes()

Specifies cookie name to extract JWT token.

string cookie = 4;

Returns
Type Description
ByteString

The bytes for cookie.

getHeader()

public abstract String getHeader()

Specifies HTTP header name to extract JWT token.

string header = 1;

Returns
Type Description
String

The header.

getHeaderBytes()

public abstract ByteString getHeaderBytes()

Specifies HTTP header name to extract JWT token.

string header = 1;

Returns
Type Description
ByteString

The bytes for header.

getInCase()

public abstract JwtLocation.InCase getInCase()
Returns
Type Description
JwtLocation.InCase

getQuery()

public abstract String getQuery()

Specifies URL query parameter name to extract JWT token.

string query = 2;

Returns
Type Description
String

The query.

getQueryBytes()

public abstract ByteString getQueryBytes()

Specifies URL query parameter name to extract JWT token.

string query = 2;

Returns
Type Description
ByteString

The bytes for query.

getValuePrefix()

public abstract 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 abstract 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 abstract boolean hasCookie()

Specifies cookie name to extract JWT token.

string cookie = 4;

Returns
Type Description
boolean

Whether the cookie field is set.

hasHeader()

public abstract 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 abstract boolean hasQuery()

Specifies URL query parameter name to extract JWT token.

string query = 2;

Returns
Type Description
boolean

Whether the query field is set.