Package io.deephaven.server.session
Class NoopTicketResolverAuthorization
java.lang.Object
io.deephaven.server.session.NoopTicketResolverAuthorization
- All Implemented Interfaces:
TicketResolver.Authorization
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authorizePublishRequest
(TicketResolver ticketResolver, ByteBuffer ticket) Implementations must validate that the provided ticket is authorized for the current user.void
authorizePublishRequest
(TicketResolver ticketResolver, org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor) Implementations must validate that the provided ticket is authorized for the current user.<T> T
transform
(T source) Implementations must type check the provided source as any type of object can be stored in an export.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.server.session.TicketResolver.Authorization
isDeniedAccess
-
Constructor Details
-
NoopTicketResolverAuthorization
public NoopTicketResolverAuthorization()
-
-
Method Details
-
transform
public <T> T transform(T source) Description copied from interface:TicketResolver.Authorization
Implementations must type check the provided source as any type of object can be stored in an export.- Specified by:
transform
in interfaceTicketResolver.Authorization
- Parameters:
source
- the object to transform (such as by applying ACLs)- Returns:
- an object that has been sanitized to be used by the current user; may return null if user does not have access to the resource
-
authorizePublishRequest
Description copied from interface:TicketResolver.Authorization
Implementations must validate that the provided ticket is authorized for the current user.- Specified by:
authorizePublishRequest
in interfaceTicketResolver.Authorization
- Parameters:
ticketResolver
- the ticket resolverticket
- the ticket to publish to as a byte buffer; note that the first byte is the route
-
authorizePublishRequest
public void authorizePublishRequest(TicketResolver ticketResolver, org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor) Description copied from interface:TicketResolver.Authorization
Implementations must validate that the provided ticket is authorized for the current user.- Specified by:
authorizePublishRequest
in interfaceTicketResolver.Authorization
- Parameters:
ticketResolver
- the ticket resolverdescriptor
- the flight descriptor to publish to; note that the first path element is the route
-