Class OServerCommandAuthenticatedServerAbstract
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedServerAbstract
- All Implemented Interfaces:
OServerCommand
- Direct Known Subclasses:
OrientDBMetricsCommand,OServerCommandDeleteDatabase,OServerCommandDistributedAuthenticated,OServerCommandETL,OServerCommandGetConnections,OServerCommandGetListDatabases,OServerCommandGetProfiler,OServerCommandGetSecurityConfig,OServerCommandIsEnterprise,OServerCommandPostConnection,OServerCommandPostDatabase,OServerCommandPostInstallDatabase,OServerCommandPostSecurityReload,OServerCommandPostServer,OServerCommandPostServerCommand,StudioPermissionCommand
Server based authenticated commands. Authenticates against the OrientDB server users found in
configuration.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
server -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOServerCommandAuthenticatedServerAbstract(String iRequiredResource) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanauthenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication) protected booleanauthenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication, String resource) booleanbeforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) Called before to execute.protected booleangetUser(OHttpRequest iRequest) protected voidsendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse) protected voidsendNotAuthorizedResponse(OHttpRequest iRequest, OHttpResponse iResponse) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
afterExecute, checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.network.protocol.http.command.OServerCommand
execute, getNames
-
Field Details
-
serverUser
-
serverPassword
-
-
Constructor Details
-
OServerCommandAuthenticatedServerAbstract
-
-
Method Details
-
beforeExecute
Description copied from interface:OServerCommandCalled before to execute. Useful to make checks.- Specified by:
beforeExecutein interfaceOServerCommand- Overrides:
beforeExecutein classOServerCommandAbstractiResponse- TODO- Throws:
IOException
-
authenticate
protected boolean authenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication, String resource) throws IOException - Throws:
IOException
-
authenticate
protected boolean authenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication) throws IOException - Throws:
IOException
-
checkGuestAccess
protected boolean checkGuestAccess() -
sendNotAuthorizedResponse
protected void sendNotAuthorizedResponse(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException - Throws:
IOException
-
sendAuthorizationRequest
protected void sendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException - Throws:
IOException
-
getUser
-
getResource
-