public interface OTokenHandler
Modifier and Type | Field and Description |
---|---|
static String |
TOKEN_HANDLER_NAME
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getDistributedToken(ONetworkProtocolData data) |
ONetworkProtocolData |
getProtocolDataFromToken(OClientConnection oClientConnection,
OToken token) |
byte[] |
getSignedBinaryToken(ODatabaseDocumentInternal db,
OSecurityUser user,
ONetworkProtocolData data) |
byte[] |
getSignedWebToken(ODatabaseDocument db,
OSecurityUser user) |
default byte[] |
getSignedWebTokenServerUser(OServerUserConfiguration user) |
boolean |
isEnabled() |
OToken |
parseBinaryToken(byte[] tokenBytes) |
OToken |
parseNotVerifyBinaryToken(byte[] tokenBytes) |
OToken |
parseWebToken(byte[] tokenBytes) |
byte[] |
renewIfNeeded(OToken token) |
boolean |
validateBinaryToken(OToken token) |
default boolean |
validateServerUserToken(OToken token,
String command,
String database) |
boolean |
validateToken(OToken token,
String command,
String database) |
@Deprecated static final String TOKEN_HANDLER_NAME
OToken parseWebToken(byte[] tokenBytes) throws InvalidKeyException, NoSuchAlgorithmException, IOException
OToken parseNotVerifyBinaryToken(byte[] tokenBytes)
OToken parseBinaryToken(byte[] tokenBytes)
boolean validateBinaryToken(OToken token)
ONetworkProtocolData getProtocolDataFromToken(OClientConnection oClientConnection, OToken token)
byte[] getSignedWebToken(ODatabaseDocument db, OSecurityUser user)
default byte[] getSignedWebTokenServerUser(OServerUserConfiguration user)
default boolean validateServerUserToken(OToken token, String command, String database)
byte[] getSignedBinaryToken(ODatabaseDocumentInternal db, OSecurityUser user, ONetworkProtocolData data)
byte[] getDistributedToken(ONetworkProtocolData data)
byte[] renewIfNeeded(OToken token)
boolean isEnabled()
Copyright © 2009–2020 OrientDB. All rights reserved.