Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SermoDigital/jose
/ functions
Functions
264 in github.com/SermoDigital/jose
⨍
Functions
264
◇
Types & classes
30
↓ 37 callers
Method
Claims
Claims returns the set of Claims.
jwt/jwt.go:16
↓ 30 callers
Method
Error
Errors implements the error interface.
jws/jws_validate.go:40
↓ 19 callers
Function
New
New creates a JWS with the provided crypto.SigningMethods.
jws/jws.go:139
↓ 13 callers
Method
Set
Set sets Claims[key] = val. It'll overwrite without warning.
jwt/claims.go:41
↓ 12 callers
Function
Error
(t *testing.T, want, got interface{})
jws/stubs_test.go:16
↓ 9 callers
Method
General
General serializes the JWS into its "general" form per https://tools.ietf.org/html/rfc7515#section-7.2.1
jws/jws.go:55
↓ 8 callers
Function
ParseGeneral
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 callers
Method
expect
()
jwt/jwt.go:139
↓ 7 callers
Method
Del
Del removes the value that corresponds with key from the Claims.
jwt/claims.go:46
↓ 7 callers
Method
Get
Get retrieves the value corresponding with key from the Claims.
jws/claims.go:15
↓ 7 callers
Method
VerifyMulti
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 callers
Method
Alg
Alg describes the signing algorithm, and is used to uniquely describe the specific crypto.SigningMethod.
crypto/signing_method.go:9
↓ 6 callers
Method
Flat
Flat serializes the JWS to its "flattened" form per https://tools.ietf.org/html/rfc7515#section-7.2.2
jws/jws.go:59
↓ 6 callers
Method
Get
Get retrieves the value corresponding with key from the Claims.
jwt/claims.go:33
↓ 6 callers
Method
Serialize
Serialize serializes the JWT into its on-the-wire representation.
jwt/jwt.go:25
↓ 5 callers
Method
Sum
Sum helps implement the hash.Hash interface.
crypto/none.go:22
↓ 5 callers
Method
Validate
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 callers
Method
Audience
Audience retrieves claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jwt/claims.go:113
↓ 4 callers
Method
Base64
Base64 implies T -> JSON -> RawURLEncodingBase64
base64.go:9
↓ 4 callers
Function
Error
(t *testing.T, want, got interface{})
stubs_test.go:5
↓ 4 callers
Function
GetSigningMethod
GetSigningMethod retrieves a crypto.SigningMethod from the global map.
jws/signing_methods.go:58
↓ 4 callers
Method
GetTime
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 callers
Function
ParseFlat
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 callers
Method
Payload
Payload Returns the payload.
jws/jws.go:16
↓ 4 callers
Method
SetTime
SetTime stores a UNIX time for the given key.
jwt/claims.go:268
↓ 3 callers
Method
Compact
Compact serializes the JWS into its "compact" form per https://tools.ietf.org/html/rfc7515#section-7.1
jws/jws.go:63
↓ 3 callers
Function
ParseCompact
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 callers
Function
ParseJWT
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 callers
Method
SetAudience
SetAudience sets claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jwt/claims.go:205
↓ 3 callers
Method
UnmarshalJSON
(b []byte)
jws/jws_test.go:16
↓ 3 callers
Method
Verify
Verify validates the current JWS' signature as-is. Refer to ValidateMulti for more information.
jws/jws.go:37
↓ 3 callers
Method
assignMethod
(p jose.Protected)
jws/jws.go:156
↓ 3 callers
Function
format
format formats a slice of bytes in the order given, joining them with a period.
jws/jws_serialize.go:130
↓ 3 callers
Method
sign
sign signs each index of j's sb member.
jws/jws_serialize.go:68
↓ 2 callers
Function
Base64Decode
Base64Decode decodes a base64-encoded byte slice.
base64.go:13
↓ 2 callers
Function
Base64Encode
Base64Encode encodes a byte slice.
base64.go:20
↓ 2 callers
Function
EncodeEscape
EncodeEscape base64-encodes a byte slice but escapes it for JSON. It'll return the format: `"base64"`
base64.go:28
↓ 2 callers
Method
Expiration
Expiration retrieves claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jwt/claims.go:147
↓ 2 callers
Method
Header
Header returns the JWS' unprotected Header.
jws/jws.go:29
↓ 2 callers
Method
IssuedAt
IssuedAt retrieves claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jwt/claims.go:159
↓ 2 callers
Function
NewJWT
NewJWT creates a new JWT with the given claims.
jws/jwt.go:12
↓ 2 callers
Method
NotBefore
NotBefore retrieves claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jwt/claims.go:153
↓ 2 callers
Function
RegisterSigningMethod
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 callers
Function
RemoveSigningMethod
RemoveSigningMethod removes the crypto.SigningMethod from the global map.
jws/signing_methods.go:51
↓ 2 callers
Method
Sign
Sign returns a Signature for the raw bytes, as well as any errors that occurred during the signing.
crypto/signing_method.go:18
↓ 2 callers
Method
UnmarshalJSON
MarshalJSON implements json.Unmarshaler for payload.
jws/payload.go:35
↓ 2 callers
Method
Verify
Verify verifies the current JWS as-is. Refer to verifyMulti for more information.
jws/jws_validate.go:191
↓ 2 callers
Method
VerifyCallback
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 callers
Function
checkHeaders
checkHeaders returns an error per the constraints described in IgnoreDupes' comment.
jws/jws.go:458
↓ 2 callers
Function
fromForm
(req *http.Request)
jws/jws.go:423
↓ 2 callers
Function
fromHeader
(req *http.Request)
jws/jws.go:416
↓ 2 callers
Function
parseCompact
(encoded []byte, jwt bool, u ...json.Unmarshaler)
jws/jws.go:314
↓ 2 callers
Method
parseFlat
(u ...json.Unmarshaler)
jws/jws.go:272
↓ 2 callers
Method
parseGeneral
(u ...json.Unmarshaler)
jws/jws.go:224
↓ 2 callers
Method
sum
(b []byte)
crypto/rsa.go:65
↓ 2 callers
Method
sum
(b []byte)
crypto/ecdsa.go:97
↓ 2 callers
Method
sum
(b []byte)
crypto/rsa_pss.go:81
↓ 2 callers
Method
unmarshal
()
jws/jws.go:131
↓ 2 callers
Method
verify
(pl []byte, key interface{}, method crypto.SigningMethod)
jws/jws_validate.go:198
↓ 1 callers
Method
Alg
Alg implements the SigningMethod interface.
crypto/rsa.go:39
↓ 1 callers
Method
Alg
Alg returns the name of the SigningMethodECDSA instance.
crypto/ecdsa.go:52
↓ 1 callers
Method
Alg
Alg implements the SigningMethod interface.
crypto/hmac.go:43
↓ 1 callers
Method
Alg
Alg helps implement the SigningMethod interface.
crypto/none.go:57
↓ 1 callers
Method
Append
Append appends x to s' Indices member.
jws/jws_validate.go:151
↓ 1 callers
Method
Audience
Audience retrieves claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jws/claims.go:82
↓ 1 callers
Method
Compact
Compact serializes the JWS into its "compact" form per https://tools.ietf.org/html/rfc7515#section-7.1
jws/jws_serialize.go:47
↓ 1 callers
Function
Conv
Conv converts a func(Claims) error to type jwt.ValidateFunc.
jws/jwt.go:95
↓ 1 callers
Function
DecodeEscaped
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 callers
Method
Del
Del removes the value that corresponds with key from the Header.
header.go:23
↓ 1 callers
Function
Error
(t *testing.T, want, got interface{})
crypto/stubs_test.go:8
↓ 1 callers
Function
ErrorTypes
(t *testing.T, want, got interface{})
jws/stubs_test.go:28
↓ 1 callers
Method
Get
Get retrieves the value corresponding with key from the Header.
header.go:10
↓ 1 callers
Method
Get
Get retrieves the value corresponding with key from the Protected Header.
header.go:67
↓ 1 callers
Method
Has
Has returns true if a value for the given key exists inside the Header.
header.go:28
↓ 1 callers
Method
Has
Has returns true if a value for the given key exists inside the Claims.
jws/claims.go:30
↓ 1 callers
Method
Hasher
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 callers
Method
Inc
Inc increments s' Number member by one.
jws/jws_validate.go:162
↓ 1 callers
Method
IssuedAt
IssuedAt retrieves claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jws/claims.go:100
↓ 1 callers
Method
Issuer
Issuer retrieves claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jwt/claims.go:99
↓ 1 callers
Method
JWTID
JWTID retrieves claim "jti" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.7
jwt/claims.go:165
↓ 1 callers
Method
MarshalJSON
MarshalJSON implements json.Marshaler for Header.
header.go:34
↓ 1 callers
Method
MarshalJSON
MarshalJSON implements json.Marshaler for Claims.
jwt/claims.go:57
↓ 1 callers
Method
Needs
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 callers
Function
NewValidator
NewValidator returns a jwt.Validator.
jws/jwt.go:105
↓ 1 callers
Method
NotBefore
NotBefore retrieves claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jws/claims.go:94
↓ 1 callers
Function
Parse
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 callers
Method
Protected
Protected returns the JWS' Protected Header.
jws/jws.go:22
↓ 1 callers
Method
RemoveIssuer
RemoveIssuer deletes claim "iss" from c.
jws/claims.go:111
↓ 1 callers
Method
Set
Set sets Claims[key] = val. It'll overwrite without warning.
header.go:18
↓ 1 callers
Method
Set
Set sets Claims[key] = val. It'll overwrite without warning.
jws/claims.go:20
↓ 1 callers
Method
SetExpiration
SetExpiration sets claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jwt/claims.go:215
↓ 1 callers
Method
SetIssuedAt
SetIssuedAt sets claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jwt/claims.go:227
↓ 1 callers
Method
SetIssuer
SetIssuer sets claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jws/claims.go:147
↓ 1 callers
Method
SetNotBefore
SetNotBefore sets claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jwt/claims.go:221
↓ 1 callers
Method
SetPayload
SetPayload sets the payload with the given value.
jws/jws.go:19
↓ 1 callers
Method
Subject
Subject retrieves claim "sub" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.2
jwt/claims.go:106
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler for Header.
header.go:51
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements json.Unmarshaler for Protected.
header.go:110
↓ 1 callers
Function
ValidAudience
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 callers
Method
Validate
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