MCPcopy Create free account

hub / github.com/Keats/jsonwebtoken / functions

Functions262 in github.com/Keats/jsonwebtoken

Functionec_jwk_from_key
()
tests/ecdsa/mod.rs:175
Functionec_x_y
()
tests/ecdsa/mod.rs:82
Functioned_jwk
()
tests/eddsa/mod.rs:108
Functioned_jwk
()
tests/ecdsa/mod.rs:109
Functioned_jwk_from_ed25519_der_key
()
tests/eddsa/mod.rs:168
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:160
Functionencode_with_custom_header
()
tests/hmac.rs:48
Functionencode_with_extra_custom_header
()
tests/hmac.rs:70
Functionencode_with_extra_non_string_header
()
tests/hmac.rs:119
Functionencode_with_multiple_extra_custom_headers
()
tests/hmac.rs:93
Functionencode_wrong_alg_family
()
tests/hmac.rs:255
Methodeq
(&self, other: &Self)
src/errors.rs:153
Functionexp_float_in_future_but_in_rejection_period_fails
()
src/validation.rs:439
Functionexp_float_in_future_ok
()
src/validation.rs:431
Functionexp_float_in_past_fails
()
src/validation.rs:463
Functionexp_in_future_but_in_rejection_period_fails
()
src/validation.rs:420
Functionexp_in_future_ok
()
src/validation.rs:412
Functionexp_in_past_but_in_leeway_ok
()
src/validation.rs:476
Functionexp_in_past_fails
()
src/validation.rs:450
Functionexp_required_but_not_validated_fails
()
src/validation.rs:532
Functionexp_required_but_not_validated_ok
()
src/validation.rs:521
Functionexp_validated_but_not_required_fails
()
src/validation.rs:510
Functionexp_validated_but_not_required_ok
()
src/validation.rs:499
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
src/validation.rs:365
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:130
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:106
Methodfrom_base64_secret
If you have a base64 HMAC secret, use that.
src/encoding.rs:42
Methodfrom_crate_features
()
src/crypto/mod.rs:116
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:157
Methodfrom_ec_der
If you know what you're doing and have a EC DER encoded public key, use this.
src/decoding.rs:194
Methodfrom_ec_der
If you know what you're doing and have the DER-encoded key, for ECDSA
src/encoding.rs:112
Methodfrom_ec_pem
(key: &[u8])
src/decoding.rs:147
Methodfrom_ec_pem
(key: &[u8])
src/encoding.rs:90
Methodfrom_ed_components
From x part (base64 encoded) of the JWK encoding
src/decoding.rs:210
Methodfrom_ed_der
If you know what you're doing and have a Ed DER encoded public key, use this.
src/decoding.rs:202
Methodfrom_ed_der
If you know what you're doing and have the DER-encoded key, for EdDSA
src/encoding.rs:117
Methodfrom_ed_pem
(key: &[u8])
src/decoding.rs:176
Methodfrom_ed_pem
(key: &[u8])
src/encoding.rs:100
Methodfrom_encoded
Converts an encoded part into the Header struct if possible
src/header.rs:256
Methodfrom_encoded_unchecked
Converts an encoded part into the Header struct if possible, without any validation
src/header.rs:288
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:219
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:127
Methodfrom_rsa_der
If you know what you're doing and have a RSA DER encoded public key, use this.
src/decoding.rs:186
Methodfrom_rsa_der
If you know what you're doing and have the DER-encoded key, for RSA only
src/encoding.rs:107
Methodfrom_rsa_pem
(key: &[u8])
src/decoding.rs:117
Methodfrom_rsa_pem
(key: &[u8])
src/encoding.rs:69
Methodfrom_rsa_raw_components
If you have (n, e) RSA public key components already decoded, use this.
src/decoding.rs:137
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:51
Functiongenerate_algorithm_enum_from_str
()
src/algorithms.rs:121
Methodget_default
()
src/crypto/mod.rs:112
Functionhash
(value: &T)
src/header.rs:325
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:307
Functioninsecure_decode_claims
Decode a JWTs claims with NO VALIDATION DANGER: This performs zero validation on the JWT
src/decoding.rs:322
Methodinto_kind
Unwrap this error into its underlying type.
src/errors.rs:26
Functioninvalid_parse_doesnt_skip_validation
()
src/validation.rs:859
Methodis_supported
Find whether the Algorithm is implemented and supported
src/jwk.rs:487
Functioniss_array_of_string_ok
()
src/validation.rs:609
Functioniss_missing_fails
()
src/validation.rs:639
Functioniss_not_matching_fails
()
src/validation.rs:621
Functioniss_string_ok
()
src/validation.rs:597
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:143
Functionmain
()
examples/ed25519.rs:15
Functionmake_header
(value: serde_json::Value)
src/header.rs:393
Functionnbf_float_in_past_ok
()
src/validation.rs:555
Functionnbf_in_future_but_in_leeway_ok
()
src/validation.rs:584
Functionnbf_in_future_fails
()
src/validation.rs:567
Functionnbf_in_past_ok
()
src/validation.rs:543
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:46
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
← previousnext →101–200 of 262, ranked by callers