
public class OTokenHandlerImpl extends java.lang.Object implements OTokenHandler
| Modifier and Type | Field and Description |
|---|---|
protected static int |
JWT_DELIMITER |
TOKEN_HANDLER_NAME| Modifier | Constructor and Description |
|---|---|
protected |
OTokenHandlerImpl() |
protected |
OTokenHandlerImpl(byte[] key,
long sessionLength,
java.lang.String algorithm) |
|
OTokenHandlerImpl(com.orientechnologies.orient.core.config.OContextConfiguration config) |
protected |
OTokenHandlerImpl(com.orientechnologies.orient.core.security.OTokenSign sign,
long sessionLength) |
|
OTokenHandlerImpl(com.orientechnologies.orient.core.security.OTokenSign sign,
com.orientechnologies.orient.core.config.OContextConfiguration config) |
protected static final int JWT_DELIMITER
public OTokenHandlerImpl(com.orientechnologies.orient.core.config.OContextConfiguration config)
protected OTokenHandlerImpl(byte[] key,
long sessionLength,
java.lang.String algorithm)
public OTokenHandlerImpl(com.orientechnologies.orient.core.security.OTokenSign sign,
com.orientechnologies.orient.core.config.OContextConfiguration config)
protected OTokenHandlerImpl(com.orientechnologies.orient.core.security.OTokenSign sign,
long sessionLength)
protected OTokenHandlerImpl()
public OToken parseWebToken(byte[] tokenBytes)
parseWebToken in interface OTokenHandlerpublic com.orientechnologies.orient.core.security.OParsedToken parseOnlyWebToken(byte[] tokenBytes)
parseOnlyWebToken in interface OTokenHandlerpublic boolean validateToken(com.orientechnologies.orient.core.security.OParsedToken token,
java.lang.String command,
java.lang.String database)
validateToken in interface OTokenHandlerpublic boolean validateToken(OToken token, java.lang.String command, java.lang.String database)
validateToken in interface OTokenHandlerpublic boolean validateBinaryToken(com.orientechnologies.orient.core.security.OParsedToken token)
validateBinaryToken in interface OTokenHandlerpublic boolean validateBinaryToken(OToken token)
validateBinaryToken in interface OTokenHandlerpublic byte[] getSignedWebToken(ODatabaseDocument db, OSecurityUser user)
getSignedWebToken in interface OTokenHandlerpublic byte[] getSignedWebTokenServerUser(OSecurityUser user)
getSignedWebTokenServerUser in interface OTokenHandlerpublic boolean validateServerUserToken(OToken token, java.lang.String command, java.lang.String database)
validateServerUserToken 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 parseNotVerifyBinaryToken(byte[] binaryToken)
parseNotVerifyBinaryToken in interface OTokenHandlerpublic com.orientechnologies.orient.core.security.OParsedToken parseOnlyBinary(byte[] binaryToken)
parseOnlyBinary 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 com.orientechnologies.orient.core.metadata.security.jwt.OrientJwtHeader deserializeWebHeader(byte[] decodedHeader)
protected com.orientechnologies.orient.core.metadata.security.jwt.OJwtPayload deserializeWebPayload(java.lang.String type, byte[] decodedPayload)
protected byte[] serializeWebHeader(com.orientechnologies.orient.core.metadata.security.jwt.OTokenHeader header) throws java.lang.Exception
java.lang.Exceptionprotected byte[] serializeWebPayload(com.orientechnologies.orient.core.metadata.security.jwt.OJwtPayload payload) throws java.lang.Exception
java.lang.Exceptionprotected com.orientechnologies.orient.core.metadata.security.jwt.OJwtPayload createPayloadServerUser(OSecurityUser serverUser)
protected com.orientechnologies.orient.core.metadata.security.jwt.OJwtPayload createPayload(ODatabaseDocument db, OSecurityUser user)
protected java.lang.String getPayloadType(com.orientechnologies.orient.core.metadata.security.jwt.OJwtPayload payload)
public void setSessionInMills(long sessionInMills)
Copyright © 2009–2022 OrientDB. All rights reserved.