- java.lang.Object
-
- swim.security.JsonWebToken
-
- All Implemented Interfaces:
Debug
- Direct Known Subclasses:
OpenIdToken
public class JsonWebToken extends Object implements Debug
-
-
Constructor Summary
Constructors Constructor Description JsonWebToken()
JsonWebToken(Value value)
-
Method Summary
Modifier and Type Method Description String
audience()
JsonWebToken
audience(String audience)
FingerTrieSeq<String>
audiences()
JsonWebToken
audiences(String... audiences)
protected boolean
canEqual(Object other)
protected JsonWebToken
copy(Value value)
void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
long
expiration()
JsonWebToken
expiration(long expiration)
static JsonWebToken
from(Value value)
Value
get(String name)
int
hashCode()
long
issuedAt()
JsonWebToken
issuedAt(long issuedAt)
String
issuer()
JsonWebToken
issuer(String issuer)
Record
joseHeader()
String
jwtId()
JsonWebToken
jwtId(String jwtId)
JsonWebSignature
mac(Key symmetricKey)
long
notBefore()
JsonWebToken
notBefore(long notBefore)
static JsonWebToken
parse(String json)
JsonWebSignature
sign(PrivateKey privateKey)
String
subject()
JsonWebToken
subject(String subject)
String
toString()
Value
toValue()
-
-
-
Field Detail
-
value
protected final Value value
-
-
Constructor Detail
-
JsonWebToken
public JsonWebToken(Value value)
-
JsonWebToken
public JsonWebToken()
-
-
Method Detail
-
from
public static JsonWebToken from(Value value)
-
parse
public static JsonWebToken parse(String json)
-
issuer
public String issuer()
-
issuer
public JsonWebToken issuer(String issuer)
-
subject
public String subject()
-
subject
public JsonWebToken subject(String subject)
-
audience
public String audience()
-
audience
public JsonWebToken audience(String audience)
-
audiences
public FingerTrieSeq<String> audiences()
-
audiences
public JsonWebToken audiences(String... audiences)
-
expiration
public long expiration()
-
expiration
public JsonWebToken expiration(long expiration)
-
notBefore
public long notBefore()
-
notBefore
public JsonWebToken notBefore(long notBefore)
-
issuedAt
public long issuedAt()
-
issuedAt
public JsonWebToken issuedAt(long issuedAt)
-
jwtId
public String jwtId()
-
jwtId
public JsonWebToken jwtId(String jwtId)
-
joseHeader
public Record joseHeader()
-
mac
public JsonWebSignature mac(Key symmetricKey)
-
sign
public JsonWebSignature sign(PrivateKey privateKey)
-
toValue
public final Value toValue()
-
copy
protected JsonWebToken copy(Value value)
-
canEqual
protected boolean canEqual(Object other)
-
debug
public void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-