PasswordProtocol
@available(iOS 13.0, OSX 10.15, watchOS 6.0, tvOS 13.0, *)
public protocol PasswordProtocol : Equatable
A type that can represent one-time password objects
This object contains the metadata for a Password
-
The account name
Declaration
Swift
var name: String { get }
-
The issuer of the one-time password
Optional, but recommended
Declaration
Swift
var issuer: String? { get }
-
An image to associate with a given password
Not technically part of the Google Authenticator URI spec but still useful and supported by other
URI
creators.Declaration
Swift
var image: URL? { get }
-
The generator to be used for creating passwords
Declaration
Swift
var generator: GeneratorProtocol { get }
-
currentPassword
Default implementationA computed property representing the current password at any given time.
Default Implementation
Declaration
Swift
var currentPassword: String? { get }
-
Undocumented
Declaration
Swift
init(name: String, issuer: String?, image: URL?, generator: GeneratorProtocol)
-
init(url:)
Default implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
init(url: URL) throws
-
==(_:_:)
Extension methodDeclaration
Swift
static func == (lhs: Self, rhs: Self) -> Bool
-
absoluteURL
Extension methodUndocumented
Declaration
Swift
var absoluteURL: URL { get }