
public class OTokenHandlerImpl extends Object implements OTokenHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCRYPTION_ALGORITHM_DEFAULT |
protected static int |
JWT_DELIMITER |
TOKEN_HANDLER_NAME| Modifier | Constructor and Description |
|---|---|
protected |
OTokenHandlerImpl() |
protected |
OTokenHandlerImpl(byte[] key,
long sessionLength,
String algorithm) |
|
OTokenHandlerImpl(OServer server) |
public static final String ENCRYPTION_ALGORITHM_DEFAULT
protected static final int JWT_DELIMITER
public OTokenHandlerImpl(OServer server)
protected OTokenHandlerImpl()
protected OTokenHandlerImpl(byte[] key,
long sessionLength,
String algorithm)
public 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 connection, 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 OTokenHandlerprotected OrientJwtHeader deserializeWebHeader(byte[] decodedHeader)
protected OJwtPayload deserializeWebPayload(String type, byte[] decodedPayload)
protected byte[] serializeWebHeader(OJwtHeader header) throws Exception
Exceptionprotected byte[] serializeWebPayload(OJwtPayload payload) throws Exception
Exceptionprotected OJwtPayload createPayload(ODatabaseDocument db, OSecurityUser user)
protected String getPayloadType(OJwtPayload payload)
protected OKeyProvider getKeyProvider()
Copyright © 2009–2025 OrientDB. All rights reserved.