Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Keats/jsonwebtoken
/ functions
Functions
252 in github.com/Keats/jsonwebtoken
⨍
Functions
252
◇
Types & classes
68
Function
ed_jwk_from_ed25519_key
()
tests/eddsa/mod.rs:145
Function
ed_jwk_from_ed448_key
()
tests/eddsa/mod.rs:192
Function
ed_pub_components_from_private_key
( encoding_key: &[u8], curve_type: &EllipticCurve, )
src/crypto/rust_crypto/mod.rs:69
Function
ed_pub_components_from_private_key
( encoding_key: &[u8], curve_type: &EllipticCurve, )
src/crypto/aws_lc/mod.rs:59
Function
ed_x
()
tests/eddsa/mod.rs:82
Function
encode
Encode the header and claims given and sign the payload using the algorithm from the header and the key. If the algorithm given is RSA or EC, the key
src/encoding.rs:151
Function
encode_with_custom_header
()
tests/hmac.rs:42
Function
encode_with_extra_custom_header
()
tests/hmac.rs:64
Function
encode_with_extra_non_string_header
()
tests/hmac.rs:113
Function
encode_with_multiple_extra_custom_headers
()
tests/hmac.rs:87
Function
encode_wrong_alg_family
()
tests/hmac.rs:248
Method
eq
(&self, other: &Self)
src/errors.rs:153
Function
exp_float_in_future_but_in_rejection_period_fails
()
src/validation.rs:429
Function
exp_float_in_future_ok
()
src/validation.rs:421
Function
exp_float_in_past_fails
()
src/validation.rs:453
Function
exp_in_future_but_in_rejection_period_fails
()
src/validation.rs:410
Function
exp_in_future_ok
()
src/validation.rs:402
Function
exp_in_past_but_in_leeway_ok
()
src/validation.rs:466
Function
exp_in_past_fails
()
src/validation.rs:440
Function
exp_required_but_not_validated_fails
()
src/validation.rs:522
Function
exp_required_but_not_validated_ok
()
src/validation.rs:511
Function
exp_validated_but_not_required_fails
()
src/validation.rs:500
Function
exp_validated_but_not_required_ok
()
src/validation.rs:489
Method
expecting
(&self, formatter: &mut fmt::Formatter)
src/validation.rs:355
Method
expecting
(&self, formatter: &mut fmt::Formatter<'_>)
src/jwk.rs:51
Method
family
The family of the algorithm.
src/algorithms.rs:98
Method
fmt
(&self, f: &mut fmt::Formatter)
src/errors.rs:123
Method
fmt
(&self, f: &mut Formatter<'_>)
src/decoding.rs:62
Method
fmt
(&self, f: &mut Formatter<'_>)
src/encoding.rs:121
Method
fmt
(&self, f: &mut fmt::Formatter)
src/jwk.rs:266
Method
from
(err: base64::DecodeError)
src/errors.rs:162
Method
from
(alg: Algorithm)
src/jwk.rs:225
Method
from_base64_secret
If you're using HMAC with a base64 encoded secret, use this.
src/decoding.rs:103
Method
from_base64_secret
If you have a base64 HMAC secret, use that.
src/encoding.rs:39
Method
from_crate_features
()
src/crypto/mod.rs:104
Method
from_decoding_key
Create a `JWK` from a `DecodingKey`.
src/jwk.rs:555
Method
from_ec_components
If you have (x,y) ECDSA key components
src/decoding.rs:151
Method
from_ec_der
If you know what you're doing and have a EC DER encoded public key, use this.
src/decoding.rs:188
Method
from_ec_der
If you know what you're doing and have the DER-encoded key, for ECDSA
src/encoding.rs:103
Method
from_ec_pem
(key: &[u8])
src/decoding.rs:141
Method
from_ec_pem
(key: &[u8])
src/encoding.rs:81
Method
from_ed_components
From x part (base64 encoded) of the JWK encoding
src/decoding.rs:204
Method
from_ed_der
If you know what you're doing and have a Ed DER encoded public key, use this.
src/decoding.rs:196
Method
from_ed_der
If you know what you're doing and have the DER-encoded key, for EdDSA
src/encoding.rs:108
Method
from_ed_pem
(key: &[u8])
src/decoding.rs:170
Method
from_ed_pem
(key: &[u8])
src/encoding.rs:91
Method
from_encoded
Converts an encoded part into the Header struct if possible
src/header.rs:256
Method
from_encoding_key
Create a `JWK` from an `EncodingKey`.
src/jwk.rs:495
Method
from_jwk
If you have a key in Jwk format
src/decoding.rs:213
Method
from_jwt_part_claims
(encoded_jwt_part_claims: impl AsRef<[u8]>)
src/serialization.rs:30
Method
from_rsa_components
If you have (n, e) RSA public key components as strings, use this.
src/decoding.rs:121
Method
from_rsa_der
If you know what you're doing and have a RSA DER encoded public key, use this.
src/decoding.rs:180
Method
from_rsa_der
If you know what you're doing and have the DER-encoded key, for RSA only
src/encoding.rs:98
Method
from_rsa_pem
(key: &[u8])
src/decoding.rs:111
Method
from_rsa_pem
(key: &[u8])
src/encoding.rs:60
Method
from_rsa_raw_components
If you have (n, e) RSA public key components already decoded, use this.
src/decoding.rs:131
Method
from_secret
If you're using HMAC, use this.
src/decoding.rs:95
Method
from_secret
If you're using a HMAC secret that is not base64, use that.
src/encoding.rs:34
Method
from_str
(s: &str)
src/algorithms.rs:77
Method
from_str
(s: &str)
src/jwk.rs:202
Method
from_urlsafe_base64_secret
For loading websafe base64 HMAC secrets, ex: ACME EAB credentials.
src/encoding.rs:45
Function
generate_algorithm_enum_from_str
()
src/algorithms.rs:121
Method
get
Try to get the value to a given key, deserialized as `T`
src/header.rs:119
Method
get_default
()
src/crypto/mod.rs:100
Function
hash
(value: &T)
src/header.rs:286
Method
inner
Get the raw extra values specified in the header
src/header.rs:143
Function
insecure_decode
Decode a JWT with NO VALIDATION DANGER: This performs zero validation on the JWT
src/decoding.rs:296
Method
install_default
Set this `CryptoProvider` as the default for this process. This can be called successfully at most once in any process execution.
src/crypto/mod.rs:96
Method
into_kind
Unwrap this error into its underlying type.
src/errors.rs:26
Method
is_supported
Find whether the Algorithm is implemented and supported
src/jwk.rs:487
Function
iss_array_of_string_ok
()
src/validation.rs:599
Function
iss_missing_fails
()
src/validation.rs:629
Function
iss_not_matching_fails
()
src/validation.rs:611
Function
iss_string_ok
()
src/validation.rs:587
Method
kind
The kind of decoding key.
src/decoding.rs:90
Function
main
()
examples/validation.rs:14
Function
main
()
examples/custom_header.rs:15
Function
main
()
examples/auth0.rs:12
Function
main
()
examples/custom_time.rs:137
Function
main
()
examples/ed25519.rs:16
Function
nbf_float_in_past_ok
()
src/validation.rs:545
Function
nbf_in_future_but_in_leeway_ok
()
src/validation.rs:574
Function
nbf_in_future_fails
()
src/validation.rs:557
Function
nbf_in_past_ok
()
src/validation.rs:533
Method
new
Create a default validation setup allowing the given alg
src/validation.rs:110
Method
new
Returns a JWT header with the algorithm given
src/header.rs:234
Method
new
Read the PEM file for later key use
src/pem/decoder.rs:53
Method
new
(encoding_key: &EncodingKey)
src/crypto/rust_crypto/eddsa.rs:14
Method
new
(encoding_key: &EncodingKey)
src/crypto/aws_lc/eddsa.rs:13
Method
new
If a token should always be equal to its representation after serializing and deserializing again, this function must be used for construction. `Offse
examples/custom_time.rs:22
Method
new
()
examples/ed25519.rs:47
Method
new_for_family
Create a default validation setup allowing any algorithm in the family
src/validation.rs:115
Method
new_impl
(algorithms: Vec<Algorithm>)
src/validation.rs:119
Function
new_signer
(algorithm: &Algorithm, key: &EncodingKey)
src/crypto/rust_crypto/mod.rs:91
Function
new_signer
(algorithm: &Algorithm, key: &EncodingKey)
src/crypto/aws_lc/mod.rs:82
Method
new_unimplemented
Initialises all values to dummies. Will lead to a panic when JWKs are required, so only use it if you don't want to support JWKs.
src/crypto/mod.rs:158
Function
new_verifier
( algorithm: &Algorithm, key: &DecodingKey, )
src/crypto/rust_crypto/mod.rs:110
Function
new_verifier
( algorithm: &Algorithm, key: &DecodingKey, )
src/crypto/aws_lc/mod.rs:101
Function
numeric_type
(deserializer: D)
src/validation.rs:346
Function
round_trip
()
examples/custom_time.rs:75
← previous
next →
101–200 of 252, ranked by callers