Class HeaderTokenResolver
java.lang.Object
io.stargate.sgv2.api.common.token.impl.HeaderTokenResolver
- All Implemented Interfaces:
CassandraTokenResolver
The
CassandraTokenResolver that resolves a token from the HTTP header.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HeaderTokenResolver
-
-
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..
-