AccessLevel
public class AccessLevel : Codable
extension AccessLevel : Equatable, Hashable
Describes a User’s access to a Container. This class is used by the Container create and update methods on Providers.
-
The Date this access was created.
Declaration
Swift
public internal(set) var createdAt: Date? { get } -
The UUID of the user who created this access.
Declaration
Swift
public internal(set) var createdBy: UUID? { get } -
The date and time this access to the container expires.
Declaration
Swift
public private(set) var expiresAt: Date? { get } -
The encrypted blob used to decrypt the SecuredContainer. This can only be decrypted by the userId user.
Declaration
Swift
public private(set) var keyBlob: String? { get } -
The Date this access was last modified.
Declaration
Swift
public private(set) var modifiedAt: Date? { get } -
The UUID of the user who last modified this access.
Declaration
Swift
public private(set) var modifiedBy: UUID? { get } -
The permissions this user is allowed to perform on this container.
Declaration
Swift
public internal(set) var permissions: Permissions? { get } -
The ID of the container this access corresponds to.
Declaration
Swift
public internal(set) var userId: UUID! { get } -
Gets the encrypted blob used to decrypt the SecuredContainer.
Declaration
Swift
public var blobData: Data? { get } -
Declaration
Swift
public init(userId: UUID, permissions: Permissions? = Permissions.defaultForReciepient(), expiresAt: Date? = nil)Parameters
userIdThe user ID this access describes.
permissionsOptional. The permissions assigned to the user. Default: Permissions.defaultForReciepient()
expiresAtOptional. The expiration of the access. Default: nil
-
The hash value.
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Returns a Boolean indicating whether the AccessLevels are identical.
Declaration
Swift
public static func == (obj1: AccessLevel, obj2: AccessLevel) -> Bool
View on GitHub
AccessLevel Class Reference