One Logo Pool Ball
Foundation · IOS API REFERENCE

URLCredential

class · iOS 2.0+ · SDK 27.1

class URLCredential

Members (9)

init · iOS 3.0+

init

TypeScript
static initIdentityCertificatesPersistence(identity: _Security_SecIdentity, certArray: (Array<unknown>) | null, persistence: URLCredential_Persistence): URLCredential
Swift declaration
init(identity: SecIdentity, certificates certArray: [Any]?, persistence: URLCredential.Persistence)
init · iOS 3.0+

init

TypeScript
static initTrust(trust: _Security_SecTrust): URLCredential
Swift declaration
init(trust: SecTrust)
init

init

TypeScript
static initUserPasswordPersistence(user: string, password: string, persistence: URLCredential_Persistence): URLCredential
Swift declaration
init(user: String, password: String, persistence: URLCredential.Persistence)
get · iOS 3.0+

certificates

TypeScript
get certificates(): Array<unknown>
Swift declaration
var certificates: [Any] { get }
get

hasPassword

TypeScript
get hasPassword(): boolean
Swift declaration
var hasPassword: Bool { get }
get

identity

TypeScript
get identity(): (_Security_SecIdentity) | null
Swift declaration
var identity: SecIdentity? { get }
get

password

TypeScript
get password(): (string) | null
Swift declaration
var password: String? { get }
get · iOS 2.0+

persistence

TypeScript
get persistence(): URLCredential_Persistence
Swift declaration
var persistence: URLCredential.Persistence { get }
get

user

TypeScript
get user(): (string) | null
Swift declaration
var user: String? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

URLCredential.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

All Foundation types →