DelegationChain class
A chain of delegations. This is JSON Serializable. This is the object to serialize and pass to a DelegationIdentity. It does not keep any private keys.
Constructors
-
DelegationChain(List<
SignedDelegation> delegations, DerEncodedBlob publicKey) - DelegationChain.fromJSON(dynamic obj)
-
Creates a DelegationChain object from a JSON string.
factory
Properties
-
delegations
→ List<
SignedDelegation> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → DerEncodedBlob
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
SignIdentity from, PublicKey to, DateTime? expiration, {DelegationChain? previous, List< Principal> ? targets}) → Future<DelegationChain> - Create a delegation chain between two (or more) keys. By default, the expiration time will be very short (15 minutes).
-
fromDelegations(
List< SignedDelegation> delegations, DerEncodedBlob publicKey) → DelegationChain - Creates a DelegationChain object from a list of delegations and a DER-encoded public key.