Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultNonceSize = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Noncer ¶
Noncer is a strategy for creating nonces for JWTs, to be stored in the jti claim.
func NewBase64Noncer ¶
NewBase64Noncer creates a Noncer that generates a random sequence of bits encoded via the given base64 encoding. All parameters have defaults:
If random is nil, crypto/rand.Reader is used If size is nonpositive, DefaultNonceSize is used if encoding is nil, base64.RawURLEncoding is used
Click to show internal directories.
Click to hide internal directories.