Class PrincipalTokenResolver
java.lang.Object
io.stargate.sgv2.api.common.token.impl.PrincipalTokenResolver
- All Implemented Interfaces:
CassandraTokenResolver
CassandraTokenResolver that reads the token from the Principal.getName().-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrincipalTokenResolver
public PrincipalTokenResolver()
-
-
Method Details
-
resolve
public Optional<String> resolve(io.vertx.ext.web.RoutingContext context, jakarta.ws.rs.core.SecurityContext securityContext) Returns a Cassandra token given aRoutingContextand aSecurityContext.- Specified by:
resolvein interfaceCassandraTokenResolver- Parameters:
context- the routing contextsecurityContext- the security context- Returns:
- The Cassandra token to pass to the Bridge. If empty, indicates that no token should be used..
-