
public class OrientTokenHandler extends OServerPluginAbstract implements OTokenHandler, OServerPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCRYPTION_ALGORITHM_PAR |
static String |
SESSION_LENGHT_PAR |
static String |
SIGN_KEY_PAR |
enabledTOKEN_HANDLER_NAME| Constructor and Description |
|---|
OrientTokenHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
config(OServer iServer,
OServerParameterConfiguration[] iParams)
Configures the handler.
|
String |
getName() |
ONetworkProtocolData |
getProtocolDataFromToken(OClientConnection oClientConnection,
OToken token) |
long |
getSessionInMills() |
byte[] |
getSignedBinaryToken(ODatabaseDocumentInternal db,
OSecurityUser user,
ONetworkProtocolData data) |
byte[] |
getSignedWebToken(ODatabaseDocument db,
OSecurityUser user) |
boolean |
isEnabled() |
OToken |
parseBinaryToken(byte[] binaryToken) |
OToken |
parseWebToken(byte[] tokenBytes) |
byte[] |
renewIfNeeded(OToken token) |
boolean |
validateBinaryToken(OToken token) |
boolean |
validateToken(OToken token,
String command,
String database) |
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown, shutdown, startupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdownpublic static final String SIGN_KEY_PAR
public static final String SESSION_LENGHT_PAR
public static final String ENCRYPTION_ALGORITHM_PAR
public void config(OServer iServer, OServerParameterConfiguration[] iParams)
OServerPluginconfig in interface OServerPluginconfig in class OServerPluginAbstractpublic OToken parseWebToken(byte[] tokenBytes)
parseWebToken in interface OTokenHandlerpublic boolean validateToken(OToken token, String command, String database)
validateToken in interface OTokenHandlerpublic boolean validateBinaryToken(OToken token)
validateBinaryToken in interface OTokenHandlerpublic byte[] getSignedWebToken(ODatabaseDocument db, OSecurityUser user)
getSignedWebToken in interface OTokenHandlerpublic byte[] getSignedBinaryToken(ODatabaseDocumentInternal db, OSecurityUser user, ONetworkProtocolData data)
getSignedBinaryToken in interface OTokenHandlerpublic ONetworkProtocolData getProtocolDataFromToken(OClientConnection oClientConnection, OToken token)
getProtocolDataFromToken in interface OTokenHandlerpublic OToken parseBinaryToken(byte[] binaryToken)
parseBinaryToken in interface OTokenHandlerpublic byte[] renewIfNeeded(OToken token)
renewIfNeeded in interface OTokenHandlerpublic long getSessionInMills()
public boolean isEnabled()
isEnabled in interface OTokenHandlerCopyright © 2009–2025 OrientDB. All rights reserved.