Subject class

Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.

Constructors

Subject({GroupSubject? group, required String kind, ServiceAccountSubject? serviceAccount, UserSubject? user})
Default constructor.
const
Subject.fromJson(Map<String, dynamic> json)
Creates a Subject from JSON data.
factory

Properties

group GroupSubject?
group matches based on user group name.
final
hashCode int
The hash code for this object.
no setterinherited
kind String
kind indicates which one of the other fields is non-empty. Required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceAccount ServiceAccountSubject?
serviceAccount matches ServiceAccounts.
final
user UserSubject?
user matches based on username.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a Subject instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

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