OAuth2KeychainAccount

struct OAuth2KeychainAccount : KeychainGenericPasswordType

Keychain integration handler for OAuth2.

  • The service name to use.

    Declaration

    Swift

    let serviceName: String
  • The account name to use.

    Declaration

    Swift

    let accountName: String
  • The keychain access group.

    Declaration

    Swift

    var accessGroup: String?
  • Data that ends up in the keychain.

    Declaration

    Swift

    var data: [String : Any]
  • Keychain access mode.

    Declaration

    Swift

    let accessMode: String
  • Designated initializer.

    Declaration

    Swift

    init(oauth2: OAuth2Securable, account: String, data inData: [String : Any] = [:])

    Parameters

    oauth2

    The OAuth2 instance from which to retrieve settings

    account

    The account name to use

    data

    Data that we want to store to the keychain