package
2.6.0+incompatible
Repository: https://github.com/square/go-jose.git
Documentation: pkg.go.dev

# Functions

Encrypted creates builder for encrypted tokens.
NewNumericDate constructs NumericDate from time.Time value.
ParseEncrypted parses token from JWE form.
ParseSigned parses token from JWS form.
ParseSignedAndEncrypted parses signed-then-encrypted token from JWE form.
Signed creates builder for signed tokens.
SignedAndEncrypted creates builder for signed-then-encrypted tokens.

# Constants

DefaultLeeway defines the default leeway for matching NotBefore/Expiry claims.

# Variables

ErrExpired indicates that token is used after expiry time indicated in exp claim.
ErrInvalidAudience indicated invalid aud claim.
ErrInvalidClaims indicates that given claims have invalid type.
ErrInvalidContentType indicates that token requires JWT cty header.
ErrInvalidID indicates invalid jti claim.
ErrInvalidIssuer indicates invalid iss claim.
ErrInvalidSubject indicates invalid sub claim.
ErrIssuedInTheFuture indicates that the iat field is in the future.
ErrNotValidYet indicates that token is used before time indicated in nbf claim.
ErrUnmarshalAudience indicates that aud claim could not be unmarshalled.
ErrUnmarshalNumericDate indicates that JWT NumericDate could not be unmarshalled.

# Structs

Claims represents public claim values (as specified in RFC 7519).
Expected defines values used for protected claims validation.
JSONWebToken represents a JSON Web Token (as specified in RFC7519).

# Interfaces

Builder is a utility for making JSON Web Tokens.
NestedBuilder is a utility for making Signed-Then-Encrypted JSON Web Tokens.

# Type aliases

Audience represents the recipients that the token is intended for.
NumericDate represents date and time as the number of seconds since the epoch, ignoring leap seconds.