MCPcopy Create free account

hub / github.com/Keats/jsonwebtoken / functions

Functions252 in github.com/Keats/jsonwebtoken

Functioned_jwk_from_ed25519_key
()
tests/eddsa/mod.rs:145
Functioned_jwk_from_ed448_key
()
tests/eddsa/mod.rs:192
Functioned_pub_components_from_private_key
( encoding_key: &[u8], curve_type: &EllipticCurve, )
src/crypto/rust_crypto/mod.rs:69
Functioned_pub_components_from_private_key
( encoding_key: &[u8], curve_type: &EllipticCurve, )
src/crypto/aws_lc/mod.rs:59
Functioned_x
()
tests/eddsa/mod.rs:82
Functionencode
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
Functionencode_with_custom_header
()
tests/hmac.rs:42
Functionencode_with_extra_custom_header
()
tests/hmac.rs:64
Functionencode_with_extra_non_string_header
()
tests/hmac.rs:113
Functionencode_with_multiple_extra_custom_headers
()
tests/hmac.rs:87
Functionencode_wrong_alg_family
()
tests/hmac.rs:248
Methodeq
(&self, other: &Self)
src/errors.rs:153
Functionexp_float_in_future_but_in_rejection_period_fails
()
src/validation.rs:429
Functionexp_float_in_future_ok
()
src/validation.rs:421
Functionexp_float_in_past_fails
()
src/validation.rs:453
Functionexp_in_future_but_in_rejection_period_fails
()
src/validation.rs:410
Functionexp_in_future_ok
()
src/validation.rs:402
Functionexp_in_past_but_in_leeway_ok
()
src/validation.rs:466
Functionexp_in_past_fails
()
src/validation.rs:440
Functionexp_required_but_not_validated_fails
()
src/validation.rs:522
Functionexp_required_but_not_validated_ok
()
src/validation.rs:511
Functionexp_validated_but_not_required_fails
()
src/validation.rs:500
Functionexp_validated_but_not_required_ok
()
src/validation.rs:489
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
src/validation.rs:355
Methodexpecting
(&self, formatter: &mut fmt::Formatter<'_>)
src/jwk.rs:51
Methodfamily
The family of the algorithm.
src/algorithms.rs:98
Methodfmt
(&self, f: &mut fmt::Formatter)
src/errors.rs:123
Methodfmt
(&self, f: &mut Formatter<'_>)
src/decoding.rs:62
Methodfmt
(&self, f: &mut Formatter<'_>)
src/encoding.rs:121
Methodfmt
(&self, f: &mut fmt::Formatter)
src/jwk.rs:266
Methodfrom
(err: base64::DecodeError)
src/errors.rs:162
Methodfrom
(alg: Algorithm)
src/jwk.rs:225
Methodfrom_base64_secret
If you're using HMAC with a base64 encoded secret, use this.
src/decoding.rs:103
Methodfrom_base64_secret
If you have a base64 HMAC secret, use that.
src/encoding.rs:39
Methodfrom_crate_features
()
src/crypto/mod.rs:104
Methodfrom_decoding_key
Create a `JWK` from a `DecodingKey`.
src/jwk.rs:555
Methodfrom_ec_components
If you have (x,y) ECDSA key components
src/decoding.rs:151
Methodfrom_ec_der
If you know what you're doing and have a EC DER encoded public key, use this.
src/decoding.rs:188
Methodfrom_ec_der
If you know what you're doing and have the DER-encoded key, for ECDSA
src/encoding.rs:103
Methodfrom_ec_pem
(key: &[u8])
src/decoding.rs:141
Methodfrom_ec_pem
(key: &[u8])
src/encoding.rs:81
Methodfrom_ed_components
From x part (base64 encoded) of the JWK encoding
src/decoding.rs:204
Methodfrom_ed_der
If you know what you're doing and have a Ed DER encoded public key, use this.
src/decoding.rs:196
Methodfrom_ed_der
If you know what you're doing and have the DER-encoded key, for EdDSA
src/encoding.rs:108
Methodfrom_ed_pem
(key: &[u8])
src/decoding.rs:170
Methodfrom_ed_pem
(key: &[u8])
src/encoding.rs:91
Methodfrom_encoded
Converts an encoded part into the Header struct if possible
src/header.rs:256
Methodfrom_encoding_key
Create a `JWK` from an `EncodingKey`.
src/jwk.rs:495
Methodfrom_jwk
If you have a key in Jwk format
src/decoding.rs:213
Methodfrom_jwt_part_claims
(encoded_jwt_part_claims: impl AsRef<[u8]>)
src/serialization.rs:30
Methodfrom_rsa_components
If you have (n, e) RSA public key components as strings, use this.
src/decoding.rs:121
Methodfrom_rsa_der
If you know what you're doing and have a RSA DER encoded public key, use this.
src/decoding.rs:180
Methodfrom_rsa_der
If you know what you're doing and have the DER-encoded key, for RSA only
src/encoding.rs:98
Methodfrom_rsa_pem
(key: &[u8])
src/decoding.rs:111
Methodfrom_rsa_pem
(key: &[u8])
src/encoding.rs:60
Methodfrom_rsa_raw_components
If you have (n, e) RSA public key components already decoded, use this.
src/decoding.rs:131
Methodfrom_secret
If you're using HMAC, use this.
src/decoding.rs:95
Methodfrom_secret
If you're using a HMAC secret that is not base64, use that.
src/encoding.rs:34
Methodfrom_str
(s: &str)
src/algorithms.rs:77
Methodfrom_str
(s: &str)
src/jwk.rs:202
Methodfrom_urlsafe_base64_secret
For loading websafe base64 HMAC secrets, ex: ACME EAB credentials.
src/encoding.rs:45
Functiongenerate_algorithm_enum_from_str
()
src/algorithms.rs:121
Methodget
Try to get the value to a given key, deserialized as `T`
src/header.rs:119
Methodget_default
()
src/crypto/mod.rs:100
Functionhash
(value: &T)
src/header.rs:286
Methodinner
Get the raw extra values specified in the header
src/header.rs:143
Functioninsecure_decode
Decode a JWT with NO VALIDATION DANGER: This performs zero validation on the JWT
src/decoding.rs:296
Methodinstall_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
Methodinto_kind
Unwrap this error into its underlying type.
src/errors.rs:26
Methodis_supported
Find whether the Algorithm is implemented and supported
src/jwk.rs:487
Functioniss_array_of_string_ok
()
src/validation.rs:599
Functioniss_missing_fails
()
src/validation.rs:629
Functioniss_not_matching_fails
()
src/validation.rs:611
Functioniss_string_ok
()
src/validation.rs:587
Methodkind
The kind of decoding key.
src/decoding.rs:90
Functionmain
()
examples/validation.rs:14
Functionmain
()
examples/custom_header.rs:15
Functionmain
()
examples/auth0.rs:12
Functionmain
()
examples/custom_time.rs:137
Functionmain
()
examples/ed25519.rs:16
Functionnbf_float_in_past_ok
()
src/validation.rs:545
Functionnbf_in_future_but_in_leeway_ok
()
src/validation.rs:574
Functionnbf_in_future_fails
()
src/validation.rs:557
Functionnbf_in_past_ok
()
src/validation.rs:533
Methodnew
Create a default validation setup allowing the given alg
src/validation.rs:110
Methodnew
Returns a JWT header with the algorithm given
src/header.rs:234
Methodnew
Read the PEM file for later key use
src/pem/decoder.rs:53
Methodnew
(encoding_key: &EncodingKey)
src/crypto/rust_crypto/eddsa.rs:14
Methodnew
(encoding_key: &EncodingKey)
src/crypto/aws_lc/eddsa.rs:13
Methodnew
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
Methodnew
()
examples/ed25519.rs:47
Methodnew_for_family
Create a default validation setup allowing any algorithm in the family
src/validation.rs:115
Methodnew_impl
(algorithms: Vec<Algorithm>)
src/validation.rs:119
Functionnew_signer
(algorithm: &Algorithm, key: &EncodingKey)
src/crypto/rust_crypto/mod.rs:91
Functionnew_signer
(algorithm: &Algorithm, key: &EncodingKey)
src/crypto/aws_lc/mod.rs:82
Methodnew_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
Functionnew_verifier
( algorithm: &Algorithm, key: &DecodingKey, )
src/crypto/rust_crypto/mod.rs:110
Functionnew_verifier
( algorithm: &Algorithm, key: &DecodingKey, )
src/crypto/aws_lc/mod.rs:101
Functionnumeric_type
(deserializer: D)
src/validation.rs:346
Functionround_trip
()
examples/custom_time.rs:75
← previousnext →101–200 of 252, ranked by callers