Package swim.security

Class JsonWebToken

  • All Implemented Interfaces:
    swim.codec.Debug
    Direct Known Subclasses:
    OpenIdToken

    public class JsonWebToken
    extends Object
    implements swim.codec.Debug
    • Field Detail

      • value

        protected final swim.structure.Value value
    • Constructor Detail

      • JsonWebToken

        public JsonWebToken​(swim.structure.Value value)
      • JsonWebToken

        public JsonWebToken()
    • Method Detail

      • get

        public swim.structure.Value get​(String name)
      • issuer

        public String issuer()
      • subject

        public String subject()
      • audience

        public String audience()
      • audiences

        public swim.collections.FingerTrieSeq<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()
      • joseHeader

        public swim.structure.Record joseHeader()
      • toValue

        public final swim.structure.Value toValue()
      • copy

        protected JsonWebToken copy​(swim.structure.Value value)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> swim.codec.Output<T> debug​(swim.codec.Output<T> output)
        Specified by:
        debug in interface swim.codec.Debug
      • from

        public static JsonWebToken from​(swim.structure.Value value)