Versions in this module Expand all Collapse all v1 v1.0.2 Mar 8, 2023 v1.0.1 Mar 8, 2023 Changes in this version + var ErrIncorrectPassword = x509.IncorrectPasswordError + func ParsePrivateKey(privateKey []byte, passphrase []byte) (*jose.JSONWebKey, jose.SignatureAlgorithm, error) + func Verify(input []byte, vc VerifyConfig) (map[string]interface{}, error) + func VerifyRaw(input []byte, vc VerifyConfig) ([]byte, error) + type AuthzErrWithReason interface + XJWTVerifyReason func() VerifyReasons + type RandomNonce struct + Size int + func (rn *RandomNonce) Nonce() (string, error) + type VerifyConfig struct + ExpectedAudience string + ExpectedIssuer string + ExpectedNonce string + ExpectedSubject string + KeySet *jose.JSONWebKeySet + MaxExpirationFromNow time.Duration + Now func() time.Time + type VerifyErr struct + func NewVerifyErr(msg string, reason VerifyReasons) *VerifyErr + func (e *VerifyErr) Error() string + func (e *VerifyErr) XJWTVerifyReason() VerifyReasons + type VerifyReasons int32 + const JWT_EXPECT_MISMATCH + const JWT_EXPIRED + const JWT_INVALID_SIGNATURE + const JWT_MALFORMED + const JWT_NOT_PRESENT + const JWT_NO_VALIDATORS + const JWT_UNKNOWN