Class Jwt

    • Constructor Detail

      • Jwt

        public Jwt​(java.lang.String tokenValue,
                   java.time.Instant issuedAt,
                   java.time.Instant expiresAt,
                   java.util.Map<java.lang.String,​java.lang.Object> headers,
                   java.util.Map<java.lang.String,​java.lang.Object> claims)
        Constructs a Jwt using the provided parameters.
        Parameters:
        tokenValue - the token value
        issuedAt - the time at which the JWT was issued
        expiresAt - the expiration time on or after which the JWT MUST NOT be accepted
        headers - the JOSE header(s)
        claims - the JWT Claims Set
    • Method Detail

      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.Object> getHeaders()
        Returns the JOSE header(s).
        Returns:
        a Map of the JOSE header(s)
      • getClaims

        public java.util.Map<java.lang.String,​java.lang.Object> getClaims()
        Returns the JWT Claims Set.
        Specified by:
        getClaims in interface ClaimAccessor
        Returns:
        a Map of the JWT Claims Set