MCPcopy Create free account

hub / github.com/golang-jwt/jwt / functions

Functions181 in github.com/golang-jwt/jwt

MethodMarshalJSON
()
types.go:135
FunctionNew
New creates a new Token with the specified signing method and an empty map of claims.
token.go:46
FunctionParse
Parse parses, validates, verifies the signature and returns the parsed token. keyFunc will receive the parsed token and should return the cryptographi
token.go:104
FunctionParseECPrivateKeyFromPEM
ParseECPrivateKeyFromPEM parses a PEM encoded Elliptic Curve Private Key Structure
ecdsa_utils.go:16
FunctionParseECPublicKeyFromPEM
ParseECPublicKeyFromPEM parses a PEM encoded PKCS1 or PKCS8 public key
ecdsa_utils.go:43
FunctionParseEdPrivateKeyFromPEM
ParseEdPrivateKeyFromPEM parses a PEM-encoded Edwards curve private key
ed25519_utils.go:17
FunctionParseEdPublicKeyFromPEM
ParseEdPublicKeyFromPEM parses a PEM-encoded Edwards curve public key
ed25519_utils.go:42
FunctionParseRSAPrivateKeyFromPEM
ParseRSAPrivateKeyFromPEM parses a PEM encoded PKCS1 or PKCS8 private key
rsa_utils.go:17
FunctionParseRSAPrivateKeyFromPEMWithPassword
ParseRSAPrivateKeyFromPEMWithPassword parses a PEM encoded PKCS1 or PKCS8 private key protected with password Deprecated: This function is deprecated
rsa_utils.go:47
FunctionParseRSAPublicKeyFromPEM
ParseRSAPublicKeyFromPEM parses a PEM encoded PKCS1 or PKCS8 public key
rsa_utils.go:79
FunctionParseWithClaims
ParseWithClaims is a shortcut for NewParser().ParseWithClaims(). Note: If you provide a custom claim implementation that embeds one of the standard c
token.go:113
MethodSign
Sign implements token signing for the SigningMethod For this signing method, must be an *rsa.PrivateKey structure.
rsa.go:78
MethodSign
Sign implements token signing for the SigningMethod. For this signing method, key must be an ecdsa.PrivateKey struct
ecdsa.go:100
MethodSign
Sign implements token signing for the SigningMethod. For this signing method, key must be an ed25519.PrivateKey
ed25519.go:66
MethodSign
Sign implements token signing for the SigningMethod. For this signing method, key must be an rsa.PrivateKey struct
rsa_pss.go:119
MethodSign
Sign implements token signing for the SigningMethod. Key must be []byte
hmac.go:82
MethodSign
Only allow 'none' signing if UnsafeAllowNoneSignatureType is specified as the key
none.go:47
FunctionTestBearerExtractor
(t *testing.T)
request/extractor_test.go:93
FunctionTestECDSASign
(t *testing.T)
ecdsa_test.go:78
FunctionTestECDSAVerify
(t *testing.T)
ecdsa_test.go:54
FunctionTestEd25519Sign
(t *testing.T)
ed25519_test.go:62
FunctionTestEd25519Verify
(t *testing.T)
ed25519_test.go:37
FunctionTestExtractor
(t *testing.T)
request/extractor_test.go:66
FunctionTestHMACSign
(t *testing.T)
hmac_test.go:66
FunctionTestHMACVerify
(t *testing.T)
hmac_test.go:51
FunctionTestMapClaimsVerifyExpiresAtExpire
(t *testing.T)
map_claims_test.go:102
FunctionTestMapclaimsVerifyExpiresAtInvalidTypeString
(t *testing.T)
map_claims_test.go:90
FunctionTestMapclaimsVerifyIssuedAtInvalidTypeString
(t *testing.T)
map_claims_test.go:68
FunctionTestMapclaimsVerifyNotBeforeInvalidTypeString
(t *testing.T)
map_claims_test.go:79
FunctionTestNoneSign
(t *testing.T)
none_test.go:59
FunctionTestNoneVerify
(t *testing.T)
none_test.go:44
FunctionTestNumericDate
(t *testing.T)
types_test.go:12
FunctionTestNumericDate_MarshalJSON
(t *testing.T)
types_test.go:68
FunctionTestParseRequest
(t *testing.T)
request/request_test.go:57
FunctionTestParser_Parse
(t *testing.T)
parser_test.go:340
FunctionTestParser_ParseUnverified
(t *testing.T)
parser_test.go:431
FunctionTestRSAKeyParsing
(t *testing.T)
rsa_test.go:111
FunctionTestRSAPSSSaltLengthCompatibility
(t *testing.T)
rsa_pss_test.go:101
FunctionTestRSAPSSSign
(t *testing.T)
rsa_pss_test.go:77
FunctionTestRSAPSSVerify
(t *testing.T)
rsa_pss_test.go:54
FunctionTestRSASign
(t *testing.T)
rsa_test.go:61
FunctionTestRSAVerify
(t *testing.T)
rsa_test.go:43
FunctionTestRSAVerifyWithPreParsedPrivateKey
(t *testing.T)
rsa_test.go:80
FunctionTestRSAWithPreParsedPrivateKey
(t *testing.T)
rsa_test.go:94
FunctionTestSetPadding
Extension of Parsing, this is to test out functionality specific to switching codecs with padding.
parser_test.go:644
FunctionTestSingleArrayMarshal
(t *testing.T)
types_test.go:37
FunctionTestToken_SigningString
(t1 *testing.T)
token_test.go:9
FunctionTestVerifyAud
(t *testing.T)
map_claims_test.go:8
MethodUnmarshalJSON
UnmarshalJSON is an implementation of the json.RawMessage interface and deserializses a NumericDate from a JSON representation, i.e. a json.Number. Th
types.go:78
MethodUnmarshalJSON
(data []byte)
types.go:102
MethodValid
Valid validates time based claims "exp, iat, nbf". There is no accounting for clock skew. As well, if any of the above claims are not in the token, it
map_claims.go:124
MethodValid
Valid validates time based claims "exp, iat, nbf". There is no accounting for clock skew. As well, if any of the above claims are not in the token, it
claims.go:51
MethodValid
Valid validates time based claims "exp, iat, nbf". There is no accounting for clock skew. As well, if any of the above claims are not in the token, it
claims.go:144
MethodVerify
Verify implements token verification for the SigningMethod For this signing method, must be an *rsa.PublicKey structure.
rsa.go:49
MethodVerify
Verify implements token verification for the SigningMethod. For this verify method, key must be an ecdsa.PublicKey struct
ecdsa.go:58
MethodVerify
Verify implements token verification for the SigningMethod. For this verify method, key must be an ed25519.PublicKey
ed25519.go:37
MethodVerify
Verify implements token verification for the SigningMethod. For this verify method, key must be an rsa.PublicKey struct
rsa_pss.go:85
MethodVerify
Verify implements token verification for the SigningMethod. Returns nil if the signature is valid.
hmac.go:49
MethodVerify
Only allow 'none' alg type if UnsafeAllowNoneSignatureType is specified as the key
none.go:28
MethodVerifyAudience
VerifyAudience compares the aud claim against cmp. If required is false, this method will return true if the value matches or is unset
claims.go:82
MethodVerifyAudience
VerifyAudience compares the aud claim against cmp. If required is false, this method will return true if the value matches or is unset
claims.go:175
MethodVerifyIssuer
VerifyIssuer compares the iss claim against cmp. If required is false, this method will return true if the value matches or is unset
map_claims.go:115
MethodVerifyIssuer
VerifyIssuer compares the iss claim against cmp. If required is false, this method will return true if the value matches or is unset
claims.go:118
MethodVerifyIssuer
VerifyIssuer compares the iss claim against cmp. If required is false, this method will return true if the value matches or is unset
claims.go:214
FunctionWithJSONNumber
WithJSONNumber is an option to configure the underlying JSON parser with UseNumber
parser_option.go:17
FunctionWithParser
WithParser parses using a custom parser
request/request.go:66
FunctionWithValidMethods
WithValidMethods is an option to supply algorithm methods that the parser will check. Only those methods will be considered valid. It is heavily encou
parser_option.go:10
FunctionWithoutClaimsValidation
WithoutClaimsValidation is an option to disable claims validation. This option should only be used if you exactly know what you are doing.
parser_option.go:25
FunctionauthHandler
reads the form values, checks them and creates the token
http_example_test.go:159
Functioninit
()
rsa.go:23
Functioninit
read the key files before starting http handlers
http_example_test.go:36
Functioninit
()
ecdsa.go:32
Functioninit
()
hmac_example_test.go:16
Functioninit
()
parser_test.go:33
Functioninit
()
ed25519.go:24
Functioninit
()
rsa_pss.go:30
Functioninit
()
hmac.go:24
Functioninit
()
none.go:14
Functionmain
()
cmd/jwt/main.go:38
FunctionrestrictedHandler
only accessible with a valid token
http_example_test.go:193
FunctionstripBearerPrefixFromTokenString
Strips 'Bearer ' prefix from bearer token string
request/oauth2.go:8
← previous101–181 of 181, ranked by callers