public class OAuthBearerJwsToken extends Object implements org.apache.kafka.common.security.oauthbearer.OAuthBearerToken
Modifier and Type | Field and Description |
---|---|
static String |
OAUTH_NEGOTIATED_LOGICAL_CLUSTER_PROPERTY_KEY |
Constructor and Description |
---|
OAuthBearerJwsToken(String value,
Set<String> scope,
long lifetimeMs,
String principalName,
Long startTimeMs) |
Modifier and Type | Method and Description |
---|---|
long |
lifetimeMs() |
String |
principalName() |
Set<String> |
scope() |
Long |
startTimeMs() |
String |
value() |
public static final String OAUTH_NEGOTIATED_LOGICAL_CLUSTER_PROPERTY_KEY
public String value()
value
in interface org.apache.kafka.common.security.oauthbearer.OAuthBearerToken
public Set<String> scope()
scope
in interface org.apache.kafka.common.security.oauthbearer.OAuthBearerToken
public long lifetimeMs()
lifetimeMs
in interface org.apache.kafka.common.security.oauthbearer.OAuthBearerToken
public String principalName()
principalName
in interface org.apache.kafka.common.security.oauthbearer.OAuthBearerToken
public Long startTimeMs()
startTimeMs
in interface org.apache.kafka.common.security.oauthbearer.OAuthBearerToken