- java.lang.Object
-
- swim.security.JsonWebToken
-
- All Implemented Interfaces:
swim.codec.Debug
- Direct Known Subclasses:
OpenIdToken
public class JsonWebToken extends Object implements swim.codec.Debug
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.structure.Valuevalue
-
Constructor Summary
Constructors Constructor Description JsonWebToken()JsonWebToken(swim.structure.Value value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaudience()JsonWebTokenaudience(String audience)swim.collections.FingerTrieSeq<String>audiences()JsonWebTokenaudiences(String... audiences)protected booleancanEqual(Object other)protected JsonWebTokencopy(swim.structure.Value value)<T> swim.codec.Output<T>debug(swim.codec.Output<T> output)booleanequals(Object other)longexpiration()JsonWebTokenexpiration(long expiration)static JsonWebTokenfrom(swim.structure.Value value)swim.structure.Valueget(String name)inthashCode()longissuedAt()JsonWebTokenissuedAt(long issuedAt)Stringissuer()JsonWebTokenissuer(String issuer)swim.structure.RecordjoseHeader()StringjwtId()JsonWebTokenjwtId(String jwtId)JsonWebSignaturemac(Key symmetricKey)longnotBefore()JsonWebTokennotBefore(long notBefore)static JsonWebTokenparse(String json)JsonWebSignaturesign(PrivateKey privateKey)Stringsubject()JsonWebTokensubject(String subject)StringtoString()swim.structure.ValuetoValue()
-
-
-
Method Detail
-
get
public swim.structure.Value get(String name)
-
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 swim.collections.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 swim.structure.Record joseHeader()
-
mac
public JsonWebSignature mac(Key symmetricKey)
-
sign
public JsonWebSignature sign(PrivateKey privateKey)
-
toValue
public final swim.structure.Value toValue()
-
copy
protected JsonWebToken copy(swim.structure.Value value)
-
canEqual
protected boolean canEqual(Object other)
-
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
from
public static JsonWebToken from(swim.structure.Value value)
-
parse
public static JsonWebToken parse(String json)
-
-