public interface Authorizer
|Modifier and Type||Method and Description|
Checks whether a user is authorized to have a gremlin bytecode request from a client answered and raises an
Checks whether a user is authorized to have a script request from a gremlin client answered and raises an
This method is called once upon system startup to initialize the
void setup(Map<String,Object> config) throws AuthorizationException
Bytecode authorize(AuthenticatedUser user, Bytecode bytecode, Map<String,String> aliases) throws AuthorizationException
AuthorizationExceptionif this is not the case. The returned bytecde is used for further processing of the request.
AuthenticatedUserthat needs authorization.
bytecode- The gremlin
Bytecoderequest to authorize the user for.
Mapwith a single key/value pair that maps the name of the
Bytecoderequest to name of one configured in Gremlin Server.
Bytecodeto be used for further processing.
void authorize(AuthenticatedUser user, RequestMessage msg) throws AuthorizationException
AuthorizationExceptionif this is not the case.
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.