Class FixedTokenResolver
java.lang.Object
io.stargate.sgv2.api.common.token.impl.FixedTokenResolver
- All Implemented Interfaces:
CassandraTokenResolver
The
CassandraTokenResolver that uses a fixed token supplied by the configuration.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
-
Constructor Details
-
FixedTokenResolver
-
-
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..
-