Documentation
¶
Index ¶
- Variables
- func Base64RawStdDecode(value []byte) ([]byte, error)
- func Base64RawStdEncode(value []byte) []byte
- func Base64RawURLDecode(value []byte) ([]byte, error)
- func Base64RawURLEncode(value []byte) []byte
- func Base64StdDecode(value []byte) ([]byte, error)
- func Base64StdEncode(value []byte) []byte
- func Base64URLDecode(value []byte) ([]byte, error)
- func Base64URLEncode(value []byte) []byte
- func JwtHS(alg string) (func(key []byte) hash.Hash, error)
- type LocalMessageInterface
- type SecretKeyFormatType
- type SecretKeyLengthType
- type Time
Constants ¶
This section is empty.
Variables ¶
Epoch is 01/01/1970.
Functions ¶
func Base64RawStdDecode ¶
Base64RawStdDecode base标准解码
func Base64RawStdEncode ¶
Base64RawStdEncode baseRaw标准编码
func Base64RawURLDecode ¶
Base64RawURLDecode baseRawURL解码
func Base64RawURLEncode ¶
Base64RawURLEncode baseRawURL编码
Types ¶
type LocalMessageInterface ¶ added in v1.4.2
type SecretKeyFormatType ¶
type SecretKeyFormatType int
const ( PKCS8 SecretKeyFormatType = 1 PKCS1 SecretKeyFormatType = 2 )
func SecretKeyFormatTypeParse ¶
func SecretKeyFormatTypeParse(v int) SecretKeyFormatType
type SecretKeyLengthType ¶
type SecretKeyLengthType int
const ( RSA SecretKeyLengthType = 1 M2 SecretKeyLengthType = 2 )
func SecretKeyLengthTypeParse ¶
func SecretKeyLengthTypeParse(v int) SecretKeyLengthType
type Time ¶
Time is the allowed format for time, as per the RFC 7519.
func (Time) MarshalJSON ¶
MarshalJSON implements a marshaling function for time-related claims.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements an unmarshaling function for time-related claims.
Click to show internal directories.
Click to hide internal directories.