SYMBOL INDEX (250 symbols across 44 files) FILE: claims.go type Claims (line 9) | type Claims interface FILE: cmd/jwt/main.go function main (line 39) | func main() { function start (line 63) | func start() error { function loadData (line 78) | func loadData(p string) (_ []byte, retErr error) { function printJSON (line 103) | func printJSON(j any) error { function verifyToken (line 122) | func verifyToken() error { function signToken (line 177) | func signToken() error { function showToken (line 266) | func showToken() error { function isEs (line 298) | func isEs() bool { function isRs (line 302) | func isRs() bool { function isEd (line 306) | func isEd() bool { function isNone (line 310) | func isNone() bool { function algHelp (line 314) | func algHelp() string { type ArgList (line 333) | type ArgList method String (line 335) | func (l ArgList) String() string { method Set (line 340) | func (l ArgList) Set(arg string) error { FILE: ecdsa.go type SigningMethodECDSA (line 18) | type SigningMethodECDSA struct method Alg (line 52) | func (m *SigningMethodECDSA) Alg() string { method Verify (line 58) | func (m *SigningMethodECDSA) Verify(signingString string, sig []byte, ... method Sign (line 92) | func (m *SigningMethodECDSA) Sign(signingString string, key any) ([]by... function init (line 32) | func init() { FILE: ecdsa_test.go function TestECDSAVerify (line 55) | func TestECDSAVerify(t *testing.T) { function TestECDSASign (line 79) | func TestECDSASign(t *testing.T) { function BenchmarkECDSAParsing (line 111) | func BenchmarkECDSAParsing(b *testing.B) { function BenchmarkECDSASigning (line 129) | func BenchmarkECDSASigning(b *testing.B) { function decodeSegment (line 168) | func decodeSegment(t interface{ Fatalf(string, ...any) }, signature stri... function encodeSegment (line 178) | func encodeSegment(sig []byte) string { FILE: ecdsa_utils.go function ParseECPrivateKeyFromPEM (line 16) | func ParseECPrivateKeyFromPEM(key []byte) (*ecdsa.PrivateKey, error) { function ParseECPublicKeyFromPEM (line 43) | func ParseECPublicKeyFromPEM(key []byte) (*ecdsa.PublicKey, error) { FILE: ed25519.go type SigningMethodEd25519 (line 16) | type SigningMethodEd25519 struct method Alg (line 30) | func (m *SigningMethodEd25519) Alg() string { method Verify (line 36) | func (m *SigningMethodEd25519) Verify(signingString string, sig []byte... method Sign (line 58) | func (m *SigningMethodEd25519) Sign(signingString string, key any) ([]... function init (line 23) | func init() { FILE: ed25519_test.go function TestEd25519Verify (line 37) | func TestEd25519Verify(t *testing.T) { function TestEd25519Sign (line 62) | func TestEd25519Sign(t *testing.T) { FILE: ed25519_utils.go function ParseEdPrivateKeyFromPEM (line 17) | func ParseEdPrivateKeyFromPEM(key []byte) (crypto.PrivateKey, error) { function ParseEdPublicKeyFromPEM (line 42) | func ParseEdPublicKeyFromPEM(key []byte) (crypto.PublicKey, error) { FILE: errors.go type joinedError (line 31) | type joinedError struct method Error (line 35) | func (je joinedError) Error() string { method Unwrap (line 54) | func (je joinedError) Unwrap() []error { function joinErrors (line 46) | func joinErrors(errs ...error) error { function newError (line 71) | func newError(message string, err error, more ...error) error { FILE: errors_test.go function Test_joinErrors (line 9) | func Test_joinErrors(t *testing.T) { function Test_newError (line 44) | func Test_newError(t *testing.T) { FILE: example_test.go function ExampleNewWithClaims_registeredClaims (line 17) | func ExampleNewWithClaims_registeredClaims() { function ExampleNewWithClaims_customClaimsType (line 34) | func ExampleNewWithClaims_customClaimsType() { function ExampleParseWithClaims_customClaimsType (line 79) | func ExampleParseWithClaims_customClaimsType() { function ExampleParseWithClaims_validationOptions (line 103) | func ExampleParseWithClaims_validationOptions() { type MyCustomClaims (line 125) | type MyCustomClaims struct method Validate (line 135) | func (m MyCustomClaims) Validate() error { function ExampleParseWithClaims_customValidation (line 147) | func ExampleParseWithClaims_customValidation() { function ExampleParse_errorChecking (line 165) | func ExampleParse_errorChecking() { FILE: hmac.go type SigningMethodHMAC (line 11) | type SigningMethodHMAC struct method Alg (line 44) | func (m *SigningMethodHMAC) Alg() string { method Verify (line 58) | func (m *SigningMethodHMAC) Verify(signingString string, sig []byte, k... method Sign (line 91) | func (m *SigningMethodHMAC) Sign(signingString string, key any) ([]byt... function init (line 24) | func init() { FILE: hmac_example_test.go function init (line 17) | func init() { function ExampleNewWithClaims_hmac (line 27) | func ExampleNewWithClaims_hmac() { function ExampleParse_hmac (line 42) | func ExampleParse_hmac() { FILE: hmac_test.go function TestHMACVerify (line 52) | func TestHMACVerify(t *testing.T) { function TestHMACSign (line 67) | func TestHMACSign(t *testing.T) { function BenchmarkHS256Signing (line 84) | func BenchmarkHS256Signing(b *testing.B) { function BenchmarkHS384Signing (line 88) | func BenchmarkHS384Signing(b *testing.B) { function BenchmarkHS512Signing (line 92) | func BenchmarkHS512Signing(b *testing.B) { FILE: http_example_test.go constant privKeyPath (line 24) | privKeyPath = "test/sample_key" constant pubKeyPath (line 25) | pubKeyPath = "test/sample_key.pub" function init (line 35) | func init() { function fatal (line 62) | func fatal(err error) { type CustomerInfo (line 69) | type CustomerInfo struct type CustomClaimsExample (line 74) | type CustomClaimsExample struct function Example_getTokenViaHTTP (line 80) | func Example_getTokenViaHTTP() { function Example_useTokenViaHTTP (line 112) | func Example_useTokenViaHTTP() { function createToken (line 135) | func createToken(user string) (string, error) { function authHandler (line 155) | func authHandler(w http.ResponseWriter, r *http.Request) { function restrictedHandler (line 189) | func restrictedHandler(w http.ResponseWriter, r *http.Request) { FILE: jwt_test.go function TestSplitToken (line 7) | func TestSplitToken(t *testing.T) { FILE: map_claims.go type MapClaims (line 10) | type MapClaims method GetExpirationTime (line 13) | func (m MapClaims) GetExpirationTime() (*NumericDate, error) { method GetNotBefore (line 18) | func (m MapClaims) GetNotBefore() (*NumericDate, error) { method GetIssuedAt (line 23) | func (m MapClaims) GetIssuedAt() (*NumericDate, error) { method GetAudience (line 28) | func (m MapClaims) GetAudience() (ClaimStrings, error) { method GetIssuer (line 33) | func (m MapClaims) GetIssuer() (string, error) { method GetSubject (line 38) | func (m MapClaims) GetSubject() (string, error) { method parseNumericDate (line 45) | func (m MapClaims) parseNumericDate(key string) (*NumericDate, error) { method parseClaimsString (line 69) | func (m MapClaims) parseClaimsString(key string) (ClaimStrings, error) { method parseString (line 92) | func (m MapClaims) parseString(key string) (string, error) { FILE: map_claims_test.go function TestVerifyAud (line 8) | func TestVerifyAud(t *testing.T) { function TestMapclaimsVerifyIssuedAtInvalidTypeString (line 80) | func TestMapclaimsVerifyIssuedAtInvalidTypeString(t *testing.T) { function TestMapclaimsVerifyNotBeforeInvalidTypeString (line 91) | func TestMapclaimsVerifyNotBeforeInvalidTypeString(t *testing.T) { function TestMapclaimsVerifyExpiresAtInvalidTypeString (line 102) | func TestMapclaimsVerifyExpiresAtInvalidTypeString(t *testing.T) { function TestMapClaimsVerifyExpiresAtExpire (line 114) | func TestMapClaimsVerifyExpiresAtExpire(t *testing.T) { function TestMapClaims_parseString (line 143) | func TestMapClaims_parseString(t *testing.T) { FILE: none.go constant UnsafeAllowNoneSignatureType (line 7) | UnsafeAllowNoneSignatureType unsafeNoneMagicConstant = "none signing met... type signingMethodNone (line 11) | type signingMethodNone struct method Alg (line 23) | func (m *signingMethodNone) Alg() string { method Verify (line 28) | func (m *signingMethodNone) Verify(signingString string, sig []byte, k... method Sign (line 44) | func (m *signingMethodNone) Sign(signingString string, key any) ([]byt... type unsafeNoneMagicConstant (line 12) | type unsafeNoneMagicConstant function init (line 14) | func init() { FILE: none_test.go function TestNoneVerify (line 45) | func TestNoneVerify(t *testing.T) { function TestNoneSign (line 60) | func TestNoneSign(t *testing.T) { FILE: parser.go constant tokenDelimiter (line 11) | tokenDelimiter = "." type Parser (line 13) | type Parser struct method Parse (line 46) | func (p *Parser) Parse(tokenString string, keyFunc Keyfunc) (*Token, e... method ParseWithClaims (line 57) | func (p *Parser) ParseWithClaims(tokenString string, claims Claims, ke... method ParseUnverified (line 136) | func (p *Parser) ParseUnverified(tokenString string, claims Claims) (t... method DecodeSegment (line 234) | func (p *Parser) DecodeSegment(seg string) ([]byte, error) { function NewParser (line 31) | func NewParser(options ...ParserOption) *Parser { function splitToken (line 207) | func splitToken(token string) ([]string, bool) { function Parse (line 257) | func Parse(tokenString string, keyFunc Keyfunc, options ...ParserOption)... function ParseWithClaims (line 268) | func ParseWithClaims(tokenString string, claims Claims, keyFunc Keyfunc,... FILE: parser_option.go type ParserOption (line 7) | type ParserOption function WithValidMethods (line 13) | func WithValidMethods(methods []string) ParserOption { function WithJSONNumber (line 21) | func WithJSONNumber() ParserOption { function WithoutClaimsValidation (line 29) | func WithoutClaimsValidation() ParserOption { function WithLeeway (line 36) | func WithLeeway(leeway time.Duration) ParserOption { function WithTimeFunc (line 45) | func WithTimeFunc(f func() time.Time) ParserOption { function WithIssuedAt (line 53) | func WithIssuedAt() ParserOption { function WithExpirationRequired (line 61) | func WithExpirationRequired() ParserOption { function WithNotBeforeRequired (line 69) | func WithNotBeforeRequired() ParserOption { function WithAudience (line 83) | func WithAudience(aud ...string) ParserOption { function WithAllAudiences (line 99) | func WithAllAudiences(aud ...string) ParserOption { function WithIssuer (line 114) | func WithIssuer(iss string) ParserOption { function WithSubject (line 128) | func WithSubject(sub string) ParserOption { function WithPaddingAllowed (line 138) | func WithPaddingAllowed() ParserOption { function WithStrictDecoding (line 147) | func WithStrictDecoding() ParserOption { FILE: parser_test.go type customClaimsWithDifferentTypes (line 21) | type customClaimsWithDifferentTypes struct type CustomObject (line 34) | type CustomObject struct function init (line 71) | func init() { function signToken (line 499) | func signToken(claims jwt.Claims, signingMethod jwt.SigningMethod) string { function TestParser_Parse (line 512) | func TestParser_Parse(t *testing.T) { function TestParser_ParseUnverified (line 588) | func TestParser_ParseUnverified(t *testing.T) { function TestSetPadding (line 800) | func TestSetPadding(t *testing.T) { function BenchmarkParseUnverified (line 836) | func BenchmarkParseUnverified(b *testing.B) { function benchmarkParsing (line 864) | func benchmarkParsing(b *testing.B, parser *jwt.Parser, tokenString stri... function benchmarkSigning (line 879) | func benchmarkSigning(b *testing.B, method jwt.SigningMethod, key any) { FILE: registered_claims.go type RegisteredClaims (line 12) | type RegisteredClaims struct method GetExpirationTime (line 36) | func (c RegisteredClaims) GetExpirationTime() (*NumericDate, error) { method GetNotBefore (line 41) | func (c RegisteredClaims) GetNotBefore() (*NumericDate, error) { method GetIssuedAt (line 46) | func (c RegisteredClaims) GetIssuedAt() (*NumericDate, error) { method GetAudience (line 51) | func (c RegisteredClaims) GetAudience() (ClaimStrings, error) { method GetIssuer (line 56) | func (c RegisteredClaims) GetIssuer() (string, error) { method GetSubject (line 61) | func (c RegisteredClaims) GetSubject() (string, error) { FILE: request/extractor.go type Extractor (line 17) | type Extractor interface type HeaderExtractor (line 23) | type HeaderExtractor method ExtractToken (line 25) | func (e HeaderExtractor) ExtractToken(req *http.Request) (string, erro... type ArgumentExtractor (line 38) | type ArgumentExtractor method ExtractToken (line 40) | func (e ArgumentExtractor) ExtractToken(req *http.Request) (string, er... type MultiExtractor (line 55) | type MultiExtractor method ExtractToken (line 57) | func (e MultiExtractor) ExtractToken(req *http.Request) (string, error) { type PostExtractionFilter (line 71) | type PostExtractionFilter struct method ExtractToken (line 76) | func (e *PostExtractionFilter) ExtractToken(req *http.Request) (string... type BearerExtractor (line 87) | type BearerExtractor struct method ExtractToken (line 89) | func (e BearerExtractor) ExtractToken(req *http.Request) (string, erro... FILE: request/extractor_example_test.go constant exampleTokenA (line 9) | exampleTokenA = "A" function ExampleHeaderExtractor (line 12) | func ExampleHeaderExtractor() { function ExampleArgumentExtractor (line 23) | func ExampleArgumentExtractor() { FILE: request/extractor_test.go function TestExtractor (line 66) | func TestExtractor(t *testing.T) { function makeExampleRequest (line 85) | func makeExampleRequest(method, path string, headers map[string]string, ... function TestBearerExtractor (line 93) | func TestBearerExtractor(t *testing.T) { FILE: request/oauth2.go function stripBearerPrefixFromTokenString (line 8) | func stripBearerPrefixFromTokenString(tok string) (string, error) { FILE: request/request.go function ParseFromRequest (line 15) | func ParseFromRequest(req *http.Request, extractor Extractor, keyFunc jw... function ParseFromRequestWithClaims (line 45) | func ParseFromRequestWithClaims(req *http.Request, extractor Extractor, ... type fromRequestParser (line 49) | type fromRequestParser struct type ParseFromRequestOption (line 56) | type ParseFromRequestOption function WithClaims (line 59) | func WithClaims(claims jwt.Claims) ParseFromRequestOption { function WithParser (line 66) | func WithParser(parser *jwt.Parser) ParseFromRequestOption { FILE: request/request_test.go function TestParseRequest (line 57) | func TestParseRequest(t *testing.T) { FILE: rsa.go type SigningMethodRSA (line 11) | type SigningMethodRSA struct method Alg (line 43) | func (m *SigningMethodRSA) Alg() string { method Verify (line 49) | func (m *SigningMethodRSA) Verify(signingString string, sig []byte, ke... method Sign (line 70) | func (m *SigningMethodRSA) Sign(signingString string, key any) ([]byte... function init (line 23) | func init() { FILE: rsa_pss.go type SigningMethodRSAPSS (line 10) | type SigningMethodRSAPSS struct method Verify (line 82) | func (m *SigningMethodRSAPSS) Verify(signingString string, sig []byte,... method Sign (line 108) | func (m *SigningMethodRSAPSS) Sign(signingString string, key any) ([]b... function init (line 27) | func init() { FILE: rsa_pss_test.go function TestRSAPSSVerify (line 51) | func TestRSAPSSVerify(t *testing.T) { function TestRSAPSSSign (line 74) | func TestRSAPSSSign(t *testing.T) { function TestRSAPSSSaltLengthCompatibility (line 101) | func TestRSAPSSSaltLengthCompatibility(t *testing.T) { function makeToken (line 134) | func makeToken(method jwt.SigningMethod) string { function verify (line 147) | func verify(t *testing.T, signingMethod jwt.SigningMethod, token string)... FILE: rsa_test.go function TestRSAVerify (line 49) | func TestRSAVerify(t *testing.T) { function TestRSASign (line 67) | func TestRSASign(t *testing.T) { function TestRSAVerifyWithPreParsedPrivateKey (line 86) | func TestRSAVerifyWithPreParsedPrivateKey(t *testing.T) { function TestRSAWithPreParsedPrivateKey (line 100) | func TestRSAWithPreParsedPrivateKey(t *testing.T) { function TestRSAKeyParsing (line 117) | func TestRSAKeyParsing(t *testing.T) { function BenchmarkRSAParsing (line 173) | func BenchmarkRSAParsing(b *testing.B) { function BenchmarkRS256Signing (line 187) | func BenchmarkRS256Signing(b *testing.B) { function BenchmarkRS384Signing (line 197) | func BenchmarkRS384Signing(b *testing.B) { function BenchmarkRS512Signing (line 207) | func BenchmarkRS512Signing(b *testing.B) { FILE: rsa_utils.go function ParseRSAPrivateKeyFromPEM (line 17) | func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error) { function ParseRSAPrivateKeyFromPEMWithPassword (line 47) | func ParseRSAPrivateKeyFromPEMWithPassword(key []byte, password string) ... function ParseRSAPublicKeyFromPEM (line 79) | func ParseRSAPublicKeyFromPEM(key []byte) (*rsa.PublicKey, error) { FILE: signing_method.go type SigningMethod (line 14) | type SigningMethod interface function RegisterSigningMethod (line 22) | func RegisterSigningMethod(alg string, f func() SigningMethod) { function GetSigningMethod (line 30) | func GetSigningMethod(alg string) (method SigningMethod) { function GetAlgorithms (line 41) | func GetAlgorithms() (algs []string) { FILE: test/helpers.go function LoadRSAPrivateKeyFromDisk (line 11) | func LoadRSAPrivateKeyFromDisk(location string) *rsa.PrivateKey { function LoadRSAPublicKeyFromDisk (line 23) | func LoadRSAPublicKeyFromDisk(location string) *rsa.PublicKey { function MakeSampleToken (line 36) | func MakeSampleToken(c jwt.Claims, method jwt.SigningMethod, key any) st... function LoadECPrivateKeyFromDisk (line 47) | func LoadECPrivateKeyFromDisk(location string) crypto.PrivateKey { function LoadECPublicKeyFromDisk (line 59) | func LoadECPublicKeyFromDisk(location string) crypto.PublicKey { FILE: token.go type Keyfunc (line 16) | type Keyfunc type VerificationKey (line 19) | type VerificationKey interface type VerificationKeySet (line 24) | type VerificationKeySet struct type Token (line 30) | type Token struct method SignedString (line 63) | func (t *Token) SignedString(key any) (string, error) { method SigningString (line 82) | func (t *Token) SigningString() (string, error) { method EncodeSegment (line 100) | func (*Token) EncodeSegment(seg []byte) string { function New (line 41) | func New(method SigningMethod, opts ...TokenOption) *Token { function NewWithClaims (line 47) | func NewWithClaims(method SigningMethod, claims Claims, opts ...TokenOpt... FILE: token_option.go type TokenOption (line 5) | type TokenOption FILE: token_test.go function TestToken_SigningString (line 9) | func TestToken_SigningString(t1 *testing.T) { function BenchmarkToken_SigningString (line 62) | func BenchmarkToken_SigningString(b *testing.B) { FILE: types.go type NumericDate (line 32) | type NumericDate struct method MarshalJSON (line 51) | func (date NumericDate) MarshalJSON() (b []byte, err error) { method UnmarshalJSON (line 80) | func (date *NumericDate) UnmarshalJSON(b []byte) (err error) { function NewNumericDate (line 38) | func NewNumericDate(t time.Time) *NumericDate { function newNumericDateFromSeconds (line 44) | func newNumericDateFromSeconds(f float64) *NumericDate { type ClaimStrings (line 103) | type ClaimStrings method UnmarshalJSON (line 105) | func (s *ClaimStrings) UnmarshalJSON(data []byte) (err error) { method MarshalJSON (line 138) | func (s ClaimStrings) MarshalJSON() (b []byte, err error) { FILE: types_test.go function TestNumericDate (line 15) | func TestNumericDate(t *testing.T) { function TestSingleArrayMarshal (line 40) | func TestSingleArrayMarshal(t *testing.T) { function TestNumericDate_MarshalJSON (line 70) | func TestNumericDate_MarshalJSON(t *testing.T) { function TestGetSignatureAfterSigning (line 131) | func TestGetSignatureAfterSigning(t *testing.T) { FILE: validator.go type ClaimsValidator (line 26) | type ClaimsValidator interface type Validator (line 36) | type Validator struct method Validate (line 95) | func (v *Validator) Validate(claims Claims) error { method verifyExpiresAt (line 175) | func (v *Validator) verifyExpiresAt(claims Claims, cmp time.Time, requ... method verifyIssuedAt (line 196) | func (v *Validator) verifyIssuedAt(claims Claims, cmp time.Time, requi... method verifyNotBefore (line 217) | func (v *Validator) verifyNotBefore(claims Claims, cmp time.Time, requ... method verifyAudience (line 237) | func (v *Validator) verifyAudience(claims Claims, cmp []string, expect... method verifyIssuer (line 279) | func (v *Validator) verifyIssuer(claims Claims, cmp string, required b... method verifySubject (line 299) | func (v *Validator) verifySubject(claims Claims, cmp string, required ... function NewValidator (line 84) | func NewValidator(opts ...ParserOption) *Validator { function errorIfFalse (line 314) | func errorIfFalse(value bool, err error) error { function errorIfRequired (line 324) | func errorIfRequired(required bool, claim string) error { FILE: validator_test.go type MyCustomClaims (line 11) | type MyCustomClaims struct method Validate (line 16) | func (m MyCustomClaims) Validate() error { function Test_Validator_Validate (line 23) | func Test_Validator_Validate(t *testing.T) { function Test_Validator_verifyExpiresAt (line 91) | func Test_Validator_verifyExpiresAt(t *testing.T) { function Test_Validator_verifyIssuer (line 135) | func Test_Validator_verifyIssuer(t *testing.T) { function Test_Validator_verifySubject (line 176) | func Test_Validator_verifySubject(t *testing.T) { function Test_Validator_verifyIssuedAt (line 217) | func Test_Validator_verifyIssuedAt(t *testing.T) { function Test_Validator_requireNotBefore (line 265) | func Test_Validator_requireNotBefore(t *testing.T) { function Test_Validator_verifyAudience (line 332) | func Test_Validator_verifyAudience(t *testing.T) {