Documentation ¶
Overview ¶
SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC SPDX-License-Identifier: Apache-2.0
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
Directories ¶
Path | Synopsis |
---|---|
SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC SPDX-License-Identifier: Apache-2.0
|
SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC SPDX-License-Identifier: Apache-2.0 |
Click to show internal directories.
Click to hide internal directories.