Class TestRealmContextResolver
java.lang.Object
org.apache.polaris.service.context.TestRealmContextResolver
- All Implemented Interfaces:
RealmContextResolver
@ApplicationScoped
@Identifier("test")
public class TestRealmContextResolver
extends Object
implements RealmContextResolver
For local/dev testing, this resolver simply expects a custom bearer-token format that is a
semicolon-separated list of colon-separated key/value pairs that constitute the realm properties.
Example: principal:data-engineer;password:test;realm:acct123
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<org.apache.polaris.core.context.RealmContext> Resolves the realm context for the given request, and returns aCompletionStagethat completes with the resolved realm context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.polaris.service.context.RealmContextResolver
resolveRealmContext
-
Field Details
-
REALM_PROPERTY_KEY
- See Also:
-
-
Constructor Details
-
TestRealmContextResolver
-
-
Method Details
-
resolveRealmContext
public CompletionStage<org.apache.polaris.core.context.RealmContext> resolveRealmContext(String requestURL, String method, String path, Function<String, String> headers) Description copied from interface:RealmContextResolverResolves the realm context for the given request, and returns aCompletionStagethat completes with the resolved realm context.- Specified by:
resolveRealmContextin interfaceRealmContextResolver- Returns:
- a
CompletionStagethat completes with the resolved realm context
-