public class JsonWebToken extends Object implements OJsonWebToken, OToken
Modifier and Type | Field and Description |
---|---|
OJwtHeader |
header |
OJwtPayload |
payload |
Constructor and Description |
---|
JsonWebToken() |
JsonWebToken(OJwtHeader header,
OJwtPayload payload) |
Modifier and Type | Method and Description |
---|---|
String |
getDatabase() |
String |
getDatabaseType() |
long |
getExpiry() |
OJwtHeader |
getHeader() |
boolean |
getIsValid() |
boolean |
getIsVerified() |
OJwtPayload |
getPayload() |
OUser |
getUser(ODatabaseDocumentInternal db) |
ORID |
getUserId() |
String |
getUserName() |
boolean |
isNowValid() |
void |
setExpiry(long expiry) |
void |
setIsValid(boolean valid) |
void |
setIsVerified(boolean verified) |
public final OJwtHeader header
public final OJwtPayload payload
public JsonWebToken()
public JsonWebToken(OJwtHeader header, OJwtPayload payload)
public OJwtHeader getHeader()
getHeader
in interface OJsonWebToken
public OJwtPayload getPayload()
getPayload
in interface OJsonWebToken
public boolean getIsVerified()
getIsVerified
in interface OToken
public void setIsVerified(boolean verified)
setIsVerified
in interface OToken
public boolean getIsValid()
getIsValid
in interface OToken
public void setIsValid(boolean valid)
setIsValid
in interface OToken
public String getUserName()
getUserName
in interface OToken
public String getDatabase()
getDatabase
in interface OToken
public String getDatabaseType()
getDatabaseType
in interface OToken
public OUser getUser(ODatabaseDocumentInternal db)
public boolean isNowValid()
isNowValid
in interface OToken
Copyright © 2009–2020 OrientDB. All rights reserved.