• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger / identus-edge-agent-sdk-swift / 10563970802

26 Aug 2024 05:03PM CUT coverage: 43.981%. Remained the same
10563970802

Pull #162

github

web-flow
Merge ec9fb33d5 into 7e2737c01
Pull Request #162: chore: update links in readme and contributing

5320 of 12096 relevant lines covered (43.98%)

101.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/EdgeAgentSDK/Domain/Sources/Models/Credentials/RevocableCredential.swift
1
import Foundation
2

3
/// `RevocableCredential` is a protocol that defines the attributes and behaviors
4
/// of a credential that can be revoked or suspended.
5
public protocol RevocableCredential {
6
    /// Indicates whether the credential can be revoked.
7
    var canBeRevoked: Bool { get }
8

9
    /// Indicates whether the credential can be suspended.
10
    var canBeSuspended: Bool { get }
11

12
    /// Checks if the credential is currently revoked.
13
    ///
14
    /// - Returns: A Boolean value indicating whether the credential is revoked.
15
    /// - Throws: An error if the status cannot be determined.
16
    var isRevoked: Bool { get async throws }
17

18
    /// Checks if the credential is currently suspended.
19
    ///
20
    /// - Returns: A Boolean value indicating whether the credential is suspended.
21
    /// - Throws: An error if the status cannot be determined.
22
    var isSuspended: Bool { get async throws }
23
}
24

25
public extension Credential {
26
    /// A Boolean value indicating whether the credential can verify revocability.
27
    var isRevocable: Bool { self is RevocableCredential }
×
28

29
    /// Returns the revocable representation of the credential.
30
    var revocable: RevocableCredential? { self as? RevocableCredential }
×
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc