JsonWebKey class abstract

JsonWebKey

Properties:

  • alg - The "alg" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA "JSON Web Signature and Encryption Algorithms" registry established by JWA or be a value that contains a Collision- Resistant Name.
  • crv
  • d
  • dp
  • dq
  • e
  • k
  • kid - The "kid" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the "kid" value is unspecified. When "kid" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct "kid" values. (One example in which different keys might use the same "kid" value is if they have different "kty" (key type) values but are considered to be equivalent alternatives by the application using them.) The "kid" value is a case-sensitive string.
  • kty - The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC". "kty" values should either be registered in the IANA "JSON Web Key Types" registry established by JWA or be a value that contains a Collision- Resistant Name. The "kty" value is a case-sensitive string.
  • n
  • p
  • q
  • qi
  • use - The "use" (public key use) parameter identifies the intended use of the public key. The "use" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly "sig" (signature) or "enc" (encryption).
  • x
  • x5c - The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates RFC5280. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of RFC4648 -- not base64url-encoded) DER ITU.X690.1994 PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
  • y
Annotations
  • @BuiltValue()

Constructors

JsonWebKey([void updates(JsonWebKeyBuilder b)])
factory

Properties

alg String?
The "alg" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA "JSON Web Signature and Encryption Algorithms" registry established by JWA or be a value that contains a Collision- Resistant Name.
no setter
crv String?
no setter
d String?
no setter
dp String?
no setter
dq String?
no setter
e String?
no setter
hashCode int
The hash code for this object.
no setterinherited
k String?
no setter
kid String?
The "kid" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the "kid" value is unspecified. When "kid" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct "kid" values. (One example in which different keys might use the same "kid" value is if they have different "kty" (key type) values but are considered to be equivalent alternatives by the application using them.) The "kid" value is a case-sensitive string.
no setter
kty String?
The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC". "kty" values should either be registered in the IANA "JSON Web Key Types" registry established by JWA or be a value that contains a Collision- Resistant Name. The "kty" value is a case-sensitive string.
no setter
n String?
no setter
p String?
no setter
q String?
no setter
qi String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
use String?
The "use" (public key use) parameter identifies the intended use of the public key. The "use" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly "sig" (signature) or "enc" (encryption).
no setter
x String?
no setter
x5c → BuiltList<String>?
The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates RFC5280. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of RFC4648 -- not base64url-encoded) DER ITU.X690.1994 PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
no setter
y String?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(JsonWebKeyBuilder)) JsonWebKey
Rebuilds the instance.
inherited
toBuilder() JsonWebKeyBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<JsonWebKey>
no setter