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
↓ 1 callers
Method
Verify
Verify accepts the raw content, the signature, and the key used to sign the raw content, and returns any errors found while validating the signature a
crypto/signing_method.go:14
↓ 1 callers
Method
VerifyMulti
VerifyMulti verifies the current JWS as-is. Since it's meant to be called after parsing a stream of bytes into a JWS, it doesn't do any internal parsi
jws/jws_validate.go:69
↓ 1 callers
Method
cache
cache marshals the payload, but only if it's changed since the last cache.
jws/jws_serialize.go:103
↓ 1 callers
Function
eq
(a, b []int)
jws/jws_validate.go:177
↓ 1 callers
Function
stringify
(a ...interface{})
jwt/claims.go:129
↓ 1 callers
Function
verifyPrincipals
(pcpls, auds []string)
jwt/eq.go:3
Method
Alg
()
jws/signing_methods_test.go:42
Method
Base64
Base64 implements the Encoder interface.
header.go:46
Method
Base64
Base64 implements the Encoder interface.
header.go:101
Method
Base64
Base64 helps implements jose.Encoder for Signature.
crypto/signature.go:18
Method
Base64
Base64 implements jose.Encoder.
jws/payload.go:26
Method
Base64
Base64 implements the Encoder interface.
jws/claims.go:40
Method
Base64
Base64 implements the jose.Encoder interface.
jwt/claims.go:65
Method
BlockSize
BlockSize helps implement the hash.Hash interface.
crypto/none.go:31
Method
BlockSize
()
jws/signing_methods_test.go:21
Method
Claims
Claims helps implements jwt.JWT.
jws/jwt.go:31
Method
Del
Del removes the value that corresponds with key from the Protected Header.
header.go:80
Method
Del
Del removes the value that corresponds with key from the Claims.
jws/claims.go:25
Function
ErrorTypes
(t *testing.T, want, got interface{})
crypto/stubs_test.go:20
Method
Expiration
Expiration retrieves claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jws/claims.go:88
Method
Flat
Flat serializes the JWS to its "flattened" form per https://tools.ietf.org/html/rfc7515#section-7.2.2
jws/jws_serialize.go:10
Method
General
General serializes the JWS into its "general" form per https://tools.ietf.org/html/rfc7515#section-7.2.1 If only one key is passed it's used for all
jws/jws_serialize.go:32
Function
HH
()
jws/signing_methods_test.go:14
Method
Has
Has returns true if a value for the given key exists inside the Protected Header.
header.go:86
Method
Has
Has returns true if a value for the given key exists inside the Claims.
jwt/claims.go:51
Method
Hasher
Hasher implements the SigningMethod interface.
crypto/rsa.go:72
Method
Hasher
Hasher implements the Hasher method from SigningMethod.
crypto/ecdsa.go:104
Method
Hasher
Hasher implements the Hasher method from SigningMethod.
crypto/rsa_pss.go:88
Method
Hasher
Hasher implements the SigningMethod interface.
crypto/hmac.go:73
Method
Hasher
Hasher helps implement the SigningMethod interface.
crypto/none.go:62
Method
Hasher
()
jws/signing_methods_test.go:44
Method
Header
Header returns the JWS' unprotected Header.
jws/jws.go:103
Method
HeaderAt
HeaderAt returns the JWS' unprotected Header. i represents the index of the unprotected Header.
jws/jws.go:33
Method
HeaderAt
HeaderAt returns the JWS' unprotected Header. |i| is the index of the unprotected Header.
jws/jws.go:109
Method
IsJWT
IsJWT returns true if the JWS is a JWT.
jws/jwt.go:70
Method
IsJWT
IsJWT returns true if the JWS is a JWT.
jws/jws.go:66
Function
IsMultiError
IsMultiError returns true if the given error is type *MultiError.
jws/jws_validate.go:31
Method
Issuer
Issuer retrieves claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jws/claims.go:70
Method
JWTID
JWTID retrieves claim "jti" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.7
jws/claims.go:106
Method
MarshalJSON
MarshalJSON implements json.Marshaler for Protected.
header.go:92
Method
MarshalJSON
MarshalJSON implements json.Marshaler for a signature.
crypto/signature.go:13
Method
MarshalJSON
MarshalJSON implements json.Marshaler. See SigningMethodECDSA.MarshalJSON() for information.
crypto/rsa.go:76
Method
MarshalJSON
MarshalJSON is in case somebody decides to place SigningMethodECDSA inside the Header, presumably because they (wrongly) decided it was a good idea to
crypto/ecdsa.go:113
Method
MarshalJSON
MarshalJSON implements json.Marshaler. See SigningMethodECDSA.MarshalJSON() for information.
crypto/rsa_pss.go:92
Method
MarshalJSON
MarshalJSON implements json.Marshaler. See SigningMethodECDSA.MarshalJSON() for information.
crypto/hmac.go:77
Method
MarshalJSON
MarshalJSON implements json.Marshaler. See SigningMethodECDSA.MarshalJSON() for information.
crypto/none.go:68
Method
MarshalJSON
MarshalJSON implements json.Marshaler for rawBase64.
jws/rawbase64.go:8
Method
MarshalJSON
MarshalJSON implements json.Marshaler for payload.
jws/payload.go:17
Method
MarshalJSON
MarshalJSON implements json.Marshaler for Claims.
jws/claims.go:35
Function
ParseECPrivateKeyFromPEM
ParseECPrivateKeyFromPEM will parse a PEM encoded EC Private Key Structure.
crypto/ecdsa_utils.go:18
Function
ParseECPublicKeyFromPEM
ParseECPublicKeyFromPEM will parse a PEM encoded PKCS1 or PKCS8 public key
crypto/ecdsa_utils.go:27
Function
ParseFromRequest
ParseFromRequest tries to find the JWS in an http.Request. This method will call ParseMultipartForm if there's no token in the header.
jws/jws.go:435
Function
ParseJWTFromRequest
ParseJWTFromRequest tries to find the JWT in an http.Request. This method will call ParseMultipartForm if there's no token in the header.
jws/jwt.go:42
Function
ParseRSAPrivateKeyFromPEM
ParseRSAPrivateKeyFromPEM parses a PEM encoded PKCS1 or PKCS8 private key.
crypto/rsa_utils.go:18
Function
ParseRSAPublicKeyFromPEM
ParseRSAPublicKeyFromPEM parses PEM encoded PKCS1 or PKCS8 public key.
crypto/rsa_utils.go:44
Method
Payload
Payload returns the jws' payload.
jws/jws.go:81
Method
Protected
Protected returns the JWS' Protected Header.
jws/jws.go:91
Method
ProtectedAt
ProtectedAt returns the JWS' Protected Header. i represents the index of the Protected Header.
jws/jws.go:26
Method
ProtectedAt
Protected returns the JWS' Protected Header. i represents the index of the Protected Header. Left empty, it defaults to 0.
jws/jws.go:98
Method
RemoveAudience
RemoveAudience deletes claim "aud" from c.
jws/claims.go:121
Method
RemoveAudience
RemoveAudience deletes claim "aud" from c.
jwt/claims.go:177
Method
RemoveExpiration
RemoveExpiration deletes claim "exp" from c.
jws/claims.go:126
Method
RemoveExpiration
RemoveExpiration deletes claim "exp" from c.
jwt/claims.go:180
Method
RemoveIssuedAt
RemoveIssuedAt deletes claim "iat" from c.
jws/claims.go:136
Method
RemoveIssuedAt
RemoveIssuedAt deletes claim "iat" from c.
jwt/claims.go:186
Method
RemoveIssuer
RemoveIssuer deletes claim "iss" from c.
jwt/claims.go:171
Method
RemoveJWTID
RemoveJWTID deletes claim "jti" from c.
jws/claims.go:141
Method
RemoveJWTID
RemoveJWTID deletes claim "jti" from c.
jwt/claims.go:189
Method
RemoveNotBefore
RemoveNotBefore deletes claim "nbf" from c.
jws/claims.go:131
Method
RemoveNotBefore
RemoveNotBefore deletes claim "nbf" from c.
jwt/claims.go:183
Method
RemoveSubject
RemoveSubject deletes claim "sub" from c.
jws/claims.go:116
Method
RemoveSubject
RemoveSubject deletes claim "sub" from c.
jwt/claims.go:174
Method
Reset
Reset helps implement the hash.Hash interface.
crypto/none.go:25
Method
Reset
()
jws/signing_methods_test.go:19
Method
Serialize
Serialize helps implements jwt.JWT.
jws/jwt.go:23
Method
Set
Set sets Protected[key] = val. It'll overwrite without warning.
header.go:75
Method
SetAudience
SetAudience sets claim "aud" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.3
jws/claims.go:159
Method
SetAudience
SetAudience sets the "aud" claim per https://tools.ietf.org/html/rfc7519#section-4.1.3
jwt/jwt.go:106
Method
SetClaim
SetClaim sets the claim with the given val.
jwt/jwt.go:85
Method
SetExpiration
SetExpiration sets claim "exp" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.4
jws/claims.go:165
Method
SetExpiration
SetExpiration sets the "exp" claim per https://tools.ietf.org/html/rfc7519#section-4.1.4
jwt/jwt.go:113
Method
SetIssuedAt
SetIssuedAt sets claim "iat" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.6
jws/claims.go:177
Method
SetIssuedAt
SetIssuedAt sets the "iat" claim per https://tools.ietf.org/html/rfc7519#section-4.1.6
jwt/jwt.go:127
Method
SetIssuer
SetIssuer sets the "iss" claim per https://tools.ietf.org/html/rfc7519#section-4.1.1
jwt/jwt.go:92
Method
SetIssuer
SetIssuer sets claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.1
jwt/claims.go:193
Method
SetJWTID
SetJWTID sets claim "jti" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.7
jws/claims.go:183
Method
SetJWTID
SetJWTID sets the "jti" claim per https://tools.ietf.org/html/rfc7519#section-4.1.7
jwt/jwt.go:134
Method
SetJWTID
SetJWTID sets claim "jti" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.7
jwt/claims.go:233
Method
SetNotBefore
SetNotBefore sets claim "nbf" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.5
jws/claims.go:171
Method
SetNotBefore
SetNotBefore sets the "nbf" claim per https://tools.ietf.org/html/rfc7519#section-4.1.5
jwt/jwt.go:120
Method
SetPayload
SetPayload sets the jws' raw, unexported payload.
jws/jws.go:86
Method
SetSubject
SetSubject sets claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.2
jws/claims.go:153
Method
SetSubject
SetSubject sets the "sub" claim per https://tools.ietf.org/html/rfc7519#section-4.1.2
jwt/jwt.go:99
Method
SetSubject
SetSubject sets claim "iss" per its type in https://tools.ietf.org/html/rfc7519#section-4.1.2
jwt/claims.go:199
Method
Sign
Sign implements the Sign method from SigningMethod. For this signing method, must be an *rsa.PrivateKey structure.
crypto/rsa.go:53
Method
Sign
Sign implements the Sign method from SigningMethod. For this signing method, key must be an *ecdsa.PrivateKey.
crypto/ecdsa.go:78
Method
Sign
Sign implements the Sign method from SigningMethod. For this signing method, key must be an *rsa.PrivateKey.
crypto/rsa_pss.go:69
Method
Sign
Sign implements the Sign method from SigningMethod for this signing method. Key must be a []byte.
crypto/hmac.go:62
Method
Sign
Sign helps implement the SigningMethod interface.
crypto/none.go:52
Method
Sign
(_ []byte, _ interface{})
jws/signing_methods_test.go:38
← previous
next →
101–200 of 264, ranked by callers