Interface JwtLocationOrBuilder (2.34.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
TypeDescription
String

The cookie.

getCookieBytes()

public abstract ByteString getCookieBytes()

Specifies cookie name to extract JWT token.

string cookie = 4;

Returns
TypeDescription
ByteString

The bytes for cookie.

getHeader()

public abstract String getHeader()

Specifies HTTP header name to extract JWT token.

string header = 1;

Returns
TypeDescription
String

The header.

getHeaderBytes()

public abstract ByteString getHeaderBytes()

Specifies HTTP header name to extract JWT token.

string header = 1;

Returns
TypeDescription
ByteString

The bytes for header.

getInCase()

public abstract JwtLocation.InCase getInCase()
Returns
TypeDescription
JwtLocation.InCase

getQuery()

public abstract String getQuery()

Specifies URL query parameter name to extract JWT token.

string query = 2;

Returns
TypeDescription
String

The query.

getQueryBytes()

public abstract ByteString getQueryBytes()

Specifies URL query parameter name to extract JWT token.

string query = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for valuePrefix.

hasCookie()

public abstract boolean hasCookie()

Specifies cookie name to extract JWT token.

string cookie = 4;

Returns
TypeDescription
boolean

Whether the cookie field is set.

hasHeader()

public abstract boolean hasHeader()

Specifies HTTP header name to extract JWT token.

string header = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the query field is set.