- 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
-
-
-
Field Detail
-
value
protected final Value value
-
-
Constructor Detail
-
JsonWebToken
public JsonWebToken(Value value)
-
JsonWebToken
public JsonWebToken()
-
-
Method Detail
-
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 <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
from
public static JsonWebToken from(Value value)
-
parse
public static JsonWebToken parse(String json)
-
-