JoseObject class abstract

Base class for JsonWebSignature and JsonWebEncryption.

Implementers

Constructors

JoseObject(List<int> data, List<JoseRecipient> recipients, {JsonObject? sharedUnprotectedHeader, JsonObject? sharedProtectedHeader})
JoseObject.fromCompactSerialization(String serialization)
Constructs a JsonWebSignature or JsonWebEncryption from its compact serialization.
factory
JoseObject.fromJson(Map<String, dynamic> json)
Constructs a JsonWebSignature or JsonWebEncryption from its json representation.
factory

Properties

commonHeader JoseHeader
The JOSE header
no setter
commonProtectedHeader JoseHeader
The JOSE header parameters that are integrity protected
no setter
data List<int>
The binary data contained in this object
final
hashCode int
The hash code for this object.
no setterinherited
recipients List<JoseRecipient>
The per-recipient content of this object
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedProtectedHeader → JsonObject?
Header parameters that are integrity protected and shared by all recipients
final
sharedUnprotectedHeader → JsonObject?
Header parameters that are not integrity protected and are shared by all recipients
final

Methods

getPayload(JsonWebKeyStore keyStore, {List<String>? allowedAlgorithms}) Future<JosePayload>
Returns a future that resolves to the payload if the content of this object can be decrypted and verified. Otherwise the future fails with a JoseException
getPayloadFor(JsonWebKey? key, JoseHeader header, JoseRecipient recipient) List<int>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCompactSerialization() String
Serializes the JsonWebSignature or JsonWebEncryption to a string.
toJson() Map<String, dynamic>
Serializes the JsonWebSignature or JsonWebEncryption to a JSON representation.
toString() String
A string representation of this object.
inherited
verify(JsonWebKeyStore keyStore) Future<bool>

Operators

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