public class Token extends Object
| Modifier and Type | Method and Description |
|---|---|
static Token |
fromEnv() |
static Token |
fromEnv(Charset encoding) |
static Token |
fromFile(Path filepath) |
static Token |
fromFile(Path filepath,
Charset encoding) |
static Token |
fromJson(String json) |
String |
getData() |
org.joda.time.DateTime |
getExpiration() |
String |
getKey() |
String |
getSignature() |
org.joda.time.DateTime |
getTimestamp() |
boolean |
isExpired() |
String |
toHeader() |
String |
toString() |
boolean |
willExpireWithin(int seconds) |
public String getData()
public String getSignature()
public String getKey()
public org.joda.time.DateTime getTimestamp()
public org.joda.time.DateTime getExpiration()
public boolean willExpireWithin(int seconds)
public boolean isExpired()
public static Token fromFile(Path filepath, Charset encoding) throws IOException
IOExceptionpublic static Token fromFile(Path filepath) throws IOException
IOExceptionpublic static Token fromEnv(Charset encoding) throws IOException
IOExceptionpublic static Token fromEnv() throws IOException
IOExceptionpublic String toHeader()
Copyright © 2025. All rights reserved.