PolicySubject class
The Subject of a ditto policy group.
From https://www.eclipse.org/ditto/basic-policy.html#subjects:
Subjects in a policy define who gets permissions granted/revoked on the resources of a policy entry. Each subject ID contains a prefix defining the subject “issuer” (so which party issued the authentication) and an actual subject, separated with a colon.
Constructors
- PolicySubject.new(String id, {DateTime? expiringTimestamp, String? type})
-
Creates a PolicySubject with the
id
and the optionalexpiringTimestamp
andtype
. -
PolicySubject.fromJson(String id, Map<
String, dynamic> json) -
Returns a PolicySubject with the
id
and enriches it with the given information injson
.factory
Properties
- expiringTimestamp ↔ DateTime?
-
The optional validation date of this subject.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The subject-id (WHO gets the permissions granted/revoked).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String?
-
An optional description of the subject.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns the stored information about this PolicySubject in a Map which could be directly used to creates a json entry.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited