MCPcopy Create free account

hub / github.com/SermoDigital/jose / functions

Functions264 in github.com/SermoDigital/jose

↓ 37 callersMethodClaims
Claims returns the set of Claims.
jwt/jwt.go:16
↓ 30 callersMethodError
Errors implements the error interface.
jws/jws_validate.go:40
↓ 19 callersFunctionNew
New creates a JWS with the provided crypto.SigningMethods.
jws/jws.go:139
↓ 13 callersMethodSet
Set sets Claims[key] = val. It'll overwrite without warning.
jwt/claims.go:41
↓ 12 callersFunctionError
(t *testing.T, want, got interface{})
jws/stubs_test.go:16
↓ 9 callersMethodGeneral
General serializes the JWS into its "general" form per https://tools.ietf.org/html/rfc7515#section-7.2.1
jws/jws.go:55
↓ 8 callersFunctionParseGeneral
ParseGeneral parses a jws serialized into its "general" form per https://tools.ietf.org/html/rfc7515#section-7.2.1 into a physical jws per https://too
jws/jws.go:216
↓ 8 callersMethodexpect
()
jwt/jwt.go:139
↓ 7 callersMethodDel
Del removes the value that corresponds with key from the Claims.
jwt/claims.go:46
↓ 7 callersMethodGet
Get retrieves the value corresponding with key from the Claims.
jws/claims.go:15
↓ 7 callersMethodVerifyMulti
ValidateMulti validates the current JWS' signature as-is. Since it's meant to be called after parsing a stream of bytes into a JWS, it shouldn't do an
jws/jws.go:43
↓ 6 callersMethodAlg
Alg describes the signing algorithm, and is used to uniquely describe the specific crypto.SigningMethod.
crypto/signing_method.go:9
↓ 6 callersMethodFlat
Flat serializes the JWS to its "flattened" form per https://tools.ietf.org/html/rfc7515#section-7.2.2
jws/jws.go:59
↓ 6 callersMethodGet
Get retrieves the value corresponding with key from the Claims.
jwt/claims.go:33
↓ 6 callersMethodSerialize
Serialize serializes the JWT into its on-the-wire representation.
jwt/jwt.go:25
↓ 5 callersMethodSum
Sum helps implement the hash.Hash interface.
crypto/none.go:22
↓ 5 callersMethodValidate
Validate returns an error describing any issues found while validating the JWT. For info on the fn parameter, see the comment on ValidateFunc.
jwt/jwt.go:21
↓ 4 callersMethodAudience
Audience retrieves claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jwt/claims.go:113
↓ 4 callersMethodBase64
Base64 implies T -> JSON -> RawURLEncodingBase64
base64.go:9
↓ 4 callersFunctionError
(t *testing.T, want, got interface{})
stubs_test.go:5
↓ 4 callersFunctionGetSigningMethod
GetSigningMethod retrieves a crypto.SigningMethod from the global map.
jws/signing_methods.go:58
↓ 4 callersMethodGetTime
GetTime returns a UNIX time for the given key. It converts an int, int32, int64, uint, uint32, uint64 or float64 value into a UNIX time (epoch second
jwt/claims.go:249
↓ 4 callersFunctionParseFlat
ParseFlat parses a jws serialized into its "flat" form per https://tools.ietf.org/html/rfc7515#section-7.2.2 into a physical jws per https://tools.iet
jws/jws.go:264
↓ 4 callersMethodPayload
Payload Returns the payload.
jws/jws.go:16
↓ 4 callersMethodSetTime
SetTime stores a UNIX time for the given key.
jwt/claims.go:268
↓ 3 callersMethodCompact
Compact serializes the JWS into its "compact" form per https://tools.ietf.org/html/rfc7515#section-7.1
jws/jws.go:63
↓ 3 callersFunctionParseCompact
ParseCompact parses a jws serialized into its "compact" form per https://tools.ietf.org/html/rfc7515#section-7.1 into a physical jws per https://tools
jws/jws.go:310
↓ 3 callersFunctionParseJWT
ParseJWT parses a serialized jwt.JWT into a physical jwt.JWT. If its payload isn't a set of claims (or able to be coerced into a set of claims) it'll
jws/jwt.go:56
↓ 3 callersMethodSetAudience
SetAudience sets claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jwt/claims.go:205
↓ 3 callersMethodUnmarshalJSON
(b []byte)
jws/jws_test.go:16
↓ 3 callersMethodVerify
Verify validates the current JWS' signature as-is. Refer to ValidateMulti for more information.
jws/jws.go:37
↓ 3 callersMethodassignMethod
(p jose.Protected)
jws/jws.go:156
↓ 3 callersFunctionformat
format formats a slice of bytes in the order given, joining them with a period.
jws/jws_serialize.go:130
↓ 3 callersMethodsign
sign signs each index of j's sb member.
jws/jws_serialize.go:68
↓ 2 callersFunctionBase64Decode
Base64Decode decodes a base64-encoded byte slice.
base64.go:13
↓ 2 callersFunctionBase64Encode
Base64Encode encodes a byte slice.
base64.go:20
↓ 2 callersFunctionEncodeEscape
EncodeEscape base64-encodes a byte slice but escapes it for JSON. It'll return the format: `"base64"`
base64.go:28
↓ 2 callersMethodExpiration
Expiration retrieves claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jwt/claims.go:147
↓ 2 callersMethodHeader
Header returns the JWS' unprotected Header.
jws/jws.go:29
↓ 2 callersMethodIssuedAt
IssuedAt retrieves claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jwt/claims.go:159
↓ 2 callersFunctionNewJWT
NewJWT creates a new JWT with the given claims.
jws/jwt.go:12
↓ 2 callersMethodNotBefore
NotBefore retrieves claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jwt/claims.go:153
↓ 2 callersFunctionRegisterSigningMethod
RegisterSigningMethod registers the crypto.SigningMethod in the global map. This is typically done inside the caller's init function.
jws/signing_methods.go:35
↓ 2 callersFunctionRemoveSigningMethod
RemoveSigningMethod removes the crypto.SigningMethod from the global map.
jws/signing_methods.go:51
↓ 2 callersMethodSign
Sign returns a Signature for the raw bytes, as well as any errors that occurred during the signing.
crypto/signing_method.go:18
↓ 2 callersMethodUnmarshalJSON
MarshalJSON implements json.Unmarshaler for payload.
jws/payload.go:35
↓ 2 callersMethodVerify
Verify verifies the current JWS as-is. Refer to verifyMulti for more information.
jws/jws_validate.go:191
↓ 2 callersMethodVerifyCallback
VerifyCallback validates the current JWS' signature as-is. It accepts a callback function that can be used to access header parameters to lookup neede
jws/jws.go:51
↓ 2 callersFunctioncheckHeaders
checkHeaders returns an error per the constraints described in IgnoreDupes' comment.
jws/jws.go:458
↓ 2 callersFunctionfromForm
(req *http.Request)
jws/jws.go:423
↓ 2 callersFunctionfromHeader
(req *http.Request)
jws/jws.go:416
↓ 2 callersFunctionparseCompact
(encoded []byte, jwt bool, u ...json.Unmarshaler)
jws/jws.go:314
↓ 2 callersMethodparseFlat
(u ...json.Unmarshaler)
jws/jws.go:272
↓ 2 callersMethodparseGeneral
(u ...json.Unmarshaler)
jws/jws.go:224
↓ 2 callersMethodsum
(b []byte)
crypto/rsa.go:65
↓ 2 callersMethodsum
(b []byte)
crypto/ecdsa.go:97
↓ 2 callersMethodsum
(b []byte)
crypto/rsa_pss.go:81
↓ 2 callersMethodunmarshal
()
jws/jws.go:131
↓ 2 callersMethodverify
(pl []byte, key interface{}, method crypto.SigningMethod)
jws/jws_validate.go:198
↓ 1 callersMethodAlg
Alg implements the SigningMethod interface.
crypto/rsa.go:39
↓ 1 callersMethodAlg
Alg returns the name of the SigningMethodECDSA instance.
crypto/ecdsa.go:52
↓ 1 callersMethodAlg
Alg implements the SigningMethod interface.
crypto/hmac.go:43
↓ 1 callersMethodAlg
Alg helps implement the SigningMethod interface.
crypto/none.go:57
↓ 1 callersMethodAppend
Append appends x to s' Indices member.
jws/jws_validate.go:151
↓ 1 callersMethodAudience
Audience retrieves claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jws/claims.go:82
↓ 1 callersMethodCompact
Compact serializes the JWS into its "compact" form per https://tools.ietf.org/html/rfc7515#section-7.1
jws/jws_serialize.go:47
↓ 1 callersFunctionConv
Conv converts a func(Claims) error to type jwt.ValidateFunc.
jws/jwt.go:95
↓ 1 callersFunctionDecodeEscaped
DecodeEscaped decodes a base64-encoded byte slice straight from a JSON structure. It assumes it's in the format: `"base64"`, but can handle cases wher
base64.go:39
↓ 1 callersMethodDel
Del removes the value that corresponds with key from the Header.
header.go:23
↓ 1 callersFunctionError
(t *testing.T, want, got interface{})
crypto/stubs_test.go:8
↓ 1 callersFunctionErrorTypes
(t *testing.T, want, got interface{})
jws/stubs_test.go:28
↓ 1 callersMethodGet
Get retrieves the value corresponding with key from the Header.
header.go:10
↓ 1 callersMethodGet
Get retrieves the value corresponding with key from the Protected Header.
header.go:67
↓ 1 callersMethodHas
Has returns true if a value for the given key exists inside the Header.
header.go:28
↓ 1 callersMethodHas
Has returns true if a value for the given key exists inside the Claims.
jws/claims.go:30
↓ 1 callersMethodHasher
Used to cause quick panics when a crypto.SigningMethod whose form of hashing isn't linked in the binary when you register a crypto.SigningMethod. To s
crypto/signing_method.go:23
↓ 1 callersMethodInc
Inc increments s' Number member by one.
jws/jws_validate.go:162
↓ 1 callersMethodIssuedAt
IssuedAt retrieves claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jws/claims.go:100
↓ 1 callersMethodIssuer
Issuer retrieves claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jwt/claims.go:99
↓ 1 callersMethodJWTID
JWTID retrieves claim "jti" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.7
jwt/claims.go:165
↓ 1 callersMethodMarshalJSON
MarshalJSON implements json.Marshaler for Header.
header.go:34
↓ 1 callersMethodMarshalJSON
MarshalJSON implements json.Marshaler for Claims.
jwt/claims.go:57
↓ 1 callersMethodNeeds
Needs returns true if x resides inside s' Indices member for the given index. It's used to match two SigningOpts Indices members.
jws/jws_validate.go:157
↓ 1 callersFunctionNewValidator
NewValidator returns a jwt.Validator.
jws/jwt.go:105
↓ 1 callersMethodNotBefore
NotBefore retrieves claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jws/claims.go:94
↓ 1 callersFunctionParse
Parse parses any of the three serialized jws forms into a physical jws per https://tools.ietf.org/html/rfc7515#section-5.2 It accepts a json.Unmarsha
jws/jws.go:193
↓ 1 callersMethodProtected
Protected returns the JWS' Protected Header.
jws/jws.go:22
↓ 1 callersMethodRemoveIssuer
RemoveIssuer deletes claim "iss" from c.
jws/claims.go:111
↓ 1 callersMethodSet
Set sets Claims[key] = val. It'll overwrite without warning.
header.go:18
↓ 1 callersMethodSet
Set sets Claims[key] = val. It'll overwrite without warning.
jws/claims.go:20
↓ 1 callersMethodSetExpiration
SetExpiration sets claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jwt/claims.go:215
↓ 1 callersMethodSetIssuedAt
SetIssuedAt sets claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jwt/claims.go:227
↓ 1 callersMethodSetIssuer
SetIssuer sets claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jws/claims.go:147
↓ 1 callersMethodSetNotBefore
SetNotBefore sets claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jwt/claims.go:221
↓ 1 callersMethodSetPayload
SetPayload sets the payload with the given value.
jws/jws.go:19
↓ 1 callersMethodSubject
Subject retrieves claim "sub" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.2
jwt/claims.go:106
↓ 1 callersMethodUnmarshalJSON
UnmarshalJSON implements json.Unmarshaler for Header.
header.go:51
↓ 1 callersMethodUnmarshalJSON
UnmarshalJSON implements json.Unmarshaler for Protected.
header.go:110
↓ 1 callersFunctionValidAudience
ValidAudience returns true iff: - a and b are strings and a == b - a is string, b is []string and a is in b - a is []string, b is []string and all
jwt/eq.go:28
↓ 1 callersMethodValidate
Validate validates the JWT based on the expected claims in v. Note: it only validates the registered claims per https://tools.ietf.org/html/rfc7519#se
jwt/jwt.go:53
next →1–100 of 264, ranked by callers