JoseHeader class

Contains the JSON Object Signing and Encryption header parameters for JsonWebSignature and JsonWebEncryption

Constructors

JoseHeader.fromBase64EncodedString(String encodedString)
Constructs a JoseHeader from a base64 encodedString representation of the json string
JoseHeader.fromJson(Map<String, dynamic> json)
Constructs a JoseHeader from a json map

Properties

algorithm String?
Identifies the cryptographic algorithm used to secure a JsonWebSignature or to encrypt or determine the value of a Content Encryption Key with JsonWebEncryption.
no setter
compressionAlgorithm String?
Compression algorithm applied to the plaintext before encryption, if any.
no setter
contentType String?
Declares the media type IANA.MediaTypes the secured content (the payload) of the JsonWebSignature or JsonWebEncryption.
no setter
critical List<String>?
Indicates that extensions to this specification and/or JsonWebAlgorithm are being used that MUST be understood and processed.
no setter
encryptionAlgorithm String?
The content encryption algorithm used to perform authenticated encryption on the plaintext to produce the ciphertext and the Authentication Tag.
no setter
hashCode int
The hash code for this object.
no setterinherited
jsonWebKey JsonWebKey?
The public key that corresponds to the key used to digitally sign the JsonWebSignature or encrypt the JsonWebEncryption.
no setter
jwkSetUrl Uri?
Refers to a resource for a set of JSON-encoded public keys, one of which corresponds to the key used to digitally sign the JsonWebSignature or encrypt the JsonWebEncryption.
no setter
keyId String?
A hint indicating which key was used to secure the JsonWebSignature or encrypt the JsonWebEncryption.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
Declares the media type IANA.MediaTypes of the complete JsonWebSignature or JsonWebEncryption.
no setter

Methods

getTyped<T>(String key, {T factory(dynamic v)?}) → T?
Returns the property key as a typed object
inherited
getTypedList<T>(String key, {T factory(dynamic v)?}) List<T>?
Returns the property key as a typed list
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBase64EncodedString() String
Returns the base64 representation
inherited
toBytes() List<int>
Returns the bytes representing the encoded JSON
inherited
toJson() Map<String, dynamic>
Returns a JSON representation
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → dynamic
Returns the property key as a core dart value
inherited