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

input-output-hk / atala-prism-wallet-sdk-swift / 9745263953

01 Jul 2024 01:35PM UTC coverage: 41.529% (-1.8%) from 43.337%
9745263953

push

github

goncalo-frade-iohk
feat(pollux): add jwt credential revocation support

Fixes ATL-7034

Signed-off-by: goncalo-frade-iohk <goncalo.frade@iohk.io>

40 of 99 new or added lines in 7 files covered. (40.4%)

207 existing lines in 11 files now uncovered.

4802 of 11563 relevant lines covered (41.53%)

98.17 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.
NEW
27
    var isRevocable: Bool { self is RevocableCredential }
×
28

29
    /// Returns the revocable representation of the credential.
NEW
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