Documentation Archive Developer
Search

OpenDirectory Changes for Swift

OpenDirectory

Removed ODFrameworkErrors.value
Added ODFrameworkErrors.init(rawValue: UInt32)
Added ODFrameworkErrors.rawValue
Declaration
From
class ODConfiguration : NSObject {
    var nodeName: String!
    var comment: String!
    var defaultMappings: ODMappings!
    var templateName: String!
    var virtualSubnodes: [AnyObject]!
    var hideRegistration: Bool
    var preferredDestinationHostName: String!
    var preferredDestinationHostPort: UInt16
    var trustAccount: String! { get }
    var trustMetaAccount: String! { get }
    var trustKerberosPrincipal: String! { get }
    var trustType: String! { get }
    var trustUsesMutualAuthentication: Bool { get }
    var trustUsesKerberosKeytab: Bool { get }
    var trustUsesSystemKeychain: Bool { get }
    var packetSigning: Int
    var packetEncryption: Int
    var manInTheMiddleProtection: Bool
    var queryTimeoutInSeconds: Int
    var connectionSetupTimeoutInSeconds: Int
    var connectionIdleTimeoutInSeconds: Int
    var defaultModuleEntries: [AnyObject]!
    var authenticationModuleEntries: [AnyObject]!
    var discoveryModuleEntries: [AnyObject]!
    var generalModuleEntries: [AnyObject]!
    convenience init!()
    class func configuration() -> Self!
    class func suggestedTrustAccount(_ hostname: String!) -> String!
    class func suggestedTrustPassword(_ length: Int) -> String!
    func saveUsingAuthorization(_ authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
    func addTrustType(_ trustType: String!, trustAccount account: String!, trustPassword accountPassword: String!, username username: String!, password password: String!, joinExisting join: Bool, error error: NSErrorPointer) -> Bool
    func removeTrustUsingUsername(_ username: String!, password password: String!, deleteTrustAccount deleteAccount: Bool, error error: NSErrorPointer) -> Bool
}
To
class ODConfiguration : NSObject {
    var nodeName: String!
    var comment: String!
    var defaultMappings: ODMappings!
    var templateName: String!
    var virtualSubnodes: [AnyObject]!
    var hideRegistration: Bool
    var preferredDestinationHostName: String!
    var preferredDestinationHostPort: UInt16
    var trustAccount: String! { get }
    var trustMetaAccount: String! { get }
    var trustKerberosPrincipal: String! { get }
    var trustType: String! { get }
    var trustUsesMutualAuthentication: Bool { get }
    var trustUsesKerberosKeytab: Bool { get }
    var trustUsesSystemKeychain: Bool { get }
    var packetSigning: Int
    var packetEncryption: Int
    var manInTheMiddleProtection: Bool
    var queryTimeoutInSeconds: Int
    var connectionSetupTimeoutInSeconds: Int
    var connectionIdleTimeoutInSeconds: Int
    var defaultModuleEntries: [AnyObject]!
    var authenticationModuleEntries: [AnyObject]!
    var discoveryModuleEntries: [AnyObject]!
    var generalModuleEntries: [AnyObject]!
    convenience init!()
    class func configuration() -> Self!
    class func suggestedTrustAccount(_ hostname: String!) -> String!
    class func suggestedTrustPassword(_ length: Int) -> String!
    func saveUsingAuthorization(_ authorization: SFAuthorization!) throws
    func addTrustType(_ trustType: String!, trustAccount account: String!, trustPassword accountPassword: String!, username username: String!, password password: String!, joinExisting join: Bool) throws
    func removeTrustUsingUsername(_ username: String!, password password: String!, deleteTrustAccount deleteAccount: Bool) throws
}

Declaration
From
func addTrustType(_ trustType: String!, trustAccount account: String!, trustPassword accountPassword: String!, username username: String!, password password: String!, joinExisting join: Bool, error error: NSErrorPointer) -> Bool
To
func addTrustType(_ trustType: String!, trustAccount account: String!, trustPassword accountPassword: String!, username username: String!, password password: String!, joinExisting join: Bool) throws

Declaration
From
func removeTrustUsingUsername(_ username: String!, password password: String!, deleteTrustAccount deleteAccount: Bool, error error: NSErrorPointer) -> Bool
To
func removeTrustUsingUsername(_ username: String!, password password: String!, deleteTrustAccount deleteAccount: Bool) throws

Declaration
From
func saveUsingAuthorization(_ authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
To
func saveUsingAuthorization(_ authorization: SFAuthorization!) throws

DeclarationProtocols
From
struct ODFrameworkErrors {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct ODFrameworkErrors : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Modified ODNode
Declaration
From
class ODNode : NSObject {
    convenience init!(session inSession: ODSession!, type inType: ODNodeType, error outError: NSErrorPointer)
    class func nodeWithSession(_ inSession: ODSession!, type inType: ODNodeType, error outError: NSErrorPointer) -> Self!
    convenience init!(session inSession: ODSession!, name inName: String!, error outError: NSErrorPointer)
    class func nodeWithSession(_ inSession: ODSession!, name inName: String!, error outError: NSErrorPointer) -> Self!
    init!(session inSession: ODSession!, type inType: ODNodeType, error outError: NSErrorPointer)
    init!(session inSession: ODSession!, name inName: String!, error outError: NSErrorPointer)
    func subnodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
    func unreachableSubnodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
    var nodeName: String! { get }
    func nodeDetailsForKeys(_ inKeys: [AnyObject]!, error outError: NSErrorPointer) -> [NSObject : AnyObject]!
    func supportedRecordTypesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
    func supportedAttributesForRecordType(_ inRecordType: String!, error outError: NSErrorPointer) -> [AnyObject]!
    func setCredentialsWithRecordType(_ inRecordType: String!, recordName inRecordName: String!, password inPassword: String!, error outError: NSErrorPointer) -> Bool
    func setCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
    func setCredentialsUsingKerberosCache(_ inCacheName: String!, error outError: NSErrorPointer) -> Bool
    func createRecordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: [NSObject : AnyObject]!, error outError: NSErrorPointer) -> ODRecord!
    func recordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: AnyObject!, error outError: NSErrorPointer) -> ODRecord!
    func customCall(_ inCustomCode: Int, sendData inSendData: NSData!, error outError: NSErrorPointer) -> NSData!
    func customFunction(_ function: String!, payload payload: AnyObject!, error error: NSErrorPointer) -> AnyObject!
    var configuration: ODConfiguration! { get }
    func policiesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func supportedPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func setPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
    func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!, error error: NSErrorPointer) -> Bool
    func removePolicy(_ policy: ODPolicyType!, error error: NSErrorPointer) -> Bool
    func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!, error error: NSErrorPointer) -> Bool
    func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!, error error: NSErrorPointer) -> Bool
    func setAccountPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
    func accountPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func passwordContentCheck(_ password: String!, forRecordName recordName: String!, error error: NSErrorPointer) -> Bool
}
To
class ODNode : NSObject {
    convenience init(session inSession: ODSession!, type inType: ODNodeType) throws
    class func nodeWithSession(_ inSession: ODSession!, type inType: ODNodeType) throws -> Self
    convenience init(session inSession: ODSession!, name inName: String!) throws
    class func nodeWithSession(_ inSession: ODSession!, name inName: String!) throws -> Self
    init(session inSession: ODSession!, type inType: ODNodeType) throws
    init(session inSession: ODSession!, name inName: String!) throws
    func subnodeNames() throws -> [AnyObject]
    func unreachableSubnodeNames() throws -> [AnyObject]
    var nodeName: String! { get }
    func nodeDetailsForKeys(_ inKeys: [AnyObject]!) throws -> [NSObject : AnyObject]
    func supportedRecordTypes() throws -> [AnyObject]
    func supportedAttributesForRecordType(_ inRecordType: String!) throws -> [AnyObject]
    func setCredentialsWithRecordType(_ inRecordType: String!, recordName inRecordName: String!, password inPassword: String!) throws
    func setCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws
    func setCredentialsUsingKerberosCache(_ inCacheName: String!) throws
    func createRecordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: [NSObject : AnyObject]!) throws -> ODRecord
    func recordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: AnyObject!) throws -> ODRecord
    func customCall(_ inCustomCode: Int, sendData inSendData: NSData!) throws -> NSData
    func customFunction(_ function: String!, payload payload: AnyObject!) throws -> AnyObject
    var configuration: ODConfiguration! { get }
    func policies() throws -> [NSObject : AnyObject]
    func supportedPolicies() throws -> [NSObject : AnyObject]
    func setPolicies(_ policies: [NSObject : AnyObject]!) throws
    func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!) throws
    func removePolicy(_ policy: ODPolicyType!) throws
    func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!) throws
    func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!) throws
    func setAccountPolicies(_ policies: [NSObject : AnyObject]!) throws
    func accountPolicies() throws -> [NSObject : AnyObject]
    func passwordContentCheck(_ password: String!, forRecordName recordName: String!) throws
}

Declaration
From
func accountPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func accountPolicies() throws -> [NSObject : AnyObject]

Declaration
From
func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!, error error: NSErrorPointer) -> Bool
To
func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!) throws

Declaration
From
func createRecordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: [NSObject : AnyObject]!, error outError: NSErrorPointer) -> ODRecord!
To
func createRecordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: [NSObject : AnyObject]!) throws -> ODRecord

Declaration
From
func customCall(_ inCustomCode: Int, sendData inSendData: NSData!, error outError: NSErrorPointer) -> NSData!
To
func customCall(_ inCustomCode: Int, sendData inSendData: NSData!) throws -> NSData

Declaration
From
func customFunction(_ function: String!, payload payload: AnyObject!, error error: NSErrorPointer) -> AnyObject!
To
func customFunction(_ function: String!, payload payload: AnyObject!) throws -> AnyObject

Declaration
From
init!(session inSession: ODSession!, name inName: String!, error outError: NSErrorPointer)
To
init(session inSession: ODSession!, name inName: String!) throws

Declaration
From
init!(session inSession: ODSession!, type inType: ODNodeType, error outError: NSErrorPointer)
To
init(session inSession: ODSession!, type inType: ODNodeType) throws

Declaration
From
func nodeDetailsForKeys(_ inKeys: [AnyObject]!, error outError: NSErrorPointer) -> [NSObject : AnyObject]!
To
func nodeDetailsForKeys(_ inKeys: [AnyObject]!) throws -> [NSObject : AnyObject]

Declaration
From
func passwordContentCheck(_ password: String!, forRecordName recordName: String!, error error: NSErrorPointer) -> Bool
To
func passwordContentCheck(_ password: String!, forRecordName recordName: String!) throws

Declaration
From
func policiesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func policies() throws -> [NSObject : AnyObject]

Declaration
From
func recordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: AnyObject!, error outError: NSErrorPointer) -> ODRecord!
To
func recordWithRecordType(_ inRecordType: String!, name inRecordName: String!, attributes inAttributes: AnyObject!) throws -> ODRecord

Declaration
From
func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!, error error: NSErrorPointer) -> Bool
To
func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!) throws

Declaration
From
func removePolicy(_ policy: ODPolicyType!, error error: NSErrorPointer) -> Bool
To
func removePolicy(_ policy: ODPolicyType!) throws

Declaration
From
func setAccountPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
To
func setAccountPolicies(_ policies: [NSObject : AnyObject]!) throws

Declaration
From
func setCredentialsUsingKerberosCache(_ inCacheName: String!, error outError: NSErrorPointer) -> Bool
To
func setCredentialsUsingKerberosCache(_ inCacheName: String!) throws

Declaration
From
func setCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
To
func setCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws

Declaration
From
func setCredentialsWithRecordType(_ inRecordType: String!, recordName inRecordName: String!, password inPassword: String!, error outError: NSErrorPointer) -> Bool
To
func setCredentialsWithRecordType(_ inRecordType: String!, recordName inRecordName: String!, password inPassword: String!) throws

Declaration
From
func setPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
To
func setPolicies(_ policies: [NSObject : AnyObject]!) throws

Declaration
From
func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!, error error: NSErrorPointer) -> Bool
To
func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!) throws

Declaration
From
func subnodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
To
func subnodeNames() throws -> [AnyObject]

Declaration
From
func supportedAttributesForRecordType(_ inRecordType: String!, error outError: NSErrorPointer) -> [AnyObject]!
To
func supportedAttributesForRecordType(_ inRecordType: String!) throws -> [AnyObject]

Declaration
From
func supportedPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func supportedPolicies() throws -> [NSObject : AnyObject]

Declaration
From
func supportedRecordTypesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
To
func supportedRecordTypes() throws -> [AnyObject]

Declaration
From
func unreachableSubnodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
To
func unreachableSubnodeNames() throws -> [AnyObject]

Modified ODQuery
Declaration
From
class ODQuery : NSObject, NSCopying {
    init!(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int, error outError: NSErrorPointer) -> ODQuery
    class func queryWithNode(_ inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int, error outError: NSErrorPointer) -> ODQuery!
    init!(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int, error outError: NSErrorPointer)
    func resultsAllowingPartial(_ inAllowPartialResults: Bool, error outError: NSErrorPointer) -> [AnyObject]!
    unowned(unsafe) var delegate: ODQueryDelegate!
    func scheduleInRunLoop(_ inRunLoop: NSRunLoop!, forMode inMode: String!)
    func removeFromRunLoop(_ inRunLoop: NSRunLoop!, forMode inMode: String!)
    func synchronize()
    var operationQueue: NSOperationQueue!
}
To
class ODQuery : NSObject, NSCopying {
     init(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int) throws
    class func queryWithNode(_ inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int) throws -> ODQuery
    init(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int) throws
    func resultsAllowingPartial(_ inAllowPartialResults: Bool) throws -> [AnyObject]
    unowned(unsafe) var delegate: ODQueryDelegate!
    func scheduleInRunLoop(_ inRunLoop: NSRunLoop!, forMode inMode: String!)
    func removeFromRunLoop(_ inRunLoop: NSRunLoop!, forMode inMode: String!)
    func synchronize()
    var operationQueue: NSOperationQueue!
}

Declaration
From
init!(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int, error outError: NSErrorPointer)
To
init(node inNode: ODNode!, forRecordTypes inRecordTypeOrList: AnyObject!, attribute inAttribute: String!, matchType inMatchType: ODMatchType, queryValues inQueryValueOrList: AnyObject!, returnAttributes inReturnAttributeOrList: AnyObject!, maximumResults inMaximumResults: Int) throws

Declaration
From
func resultsAllowingPartial(_ inAllowPartialResults: Bool, error outError: NSErrorPointer) -> [AnyObject]!
To
func resultsAllowingPartial(_ inAllowPartialResults: Bool) throws -> [AnyObject]

Modified ODRecord
Declaration
From
class ODRecord : NSObject {
    func setNodeCredentials(_ inUsername: String!, password inPassword: String!, error outError: NSErrorPointer) -> Bool
    func setNodeCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
    func setNodeCredentialsUsingKerberosCache(_ inCacheName: String!, error outError: NSErrorPointer) -> Bool
    func passwordPolicyAndReturnError(_ outError: NSErrorPointer) -> [NSObject : AnyObject]!
    func verifyPassword(_ inPassword: String!, error outError: NSErrorPointer) -> Bool
    func verifyExtendedWithAuthenticationType(_ inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
    func changePassword(_ oldPassword: String!, toPassword newPassword: String!, error outError: NSErrorPointer) -> Bool
    func synchronizeAndReturnError(_ outError: NSErrorPointer) -> Bool
    var recordType: String! { get }
    var recordName: String! { get }
    func recordDetailsForAttributes(_ inAttributes: [AnyObject]!, error outError: NSErrorPointer) -> [NSObject : AnyObject]!
    func valuesForAttribute(_ inAttribute: String!, error outError: NSErrorPointer) -> [AnyObject]!
    func setValue(_ inValueOrValues: AnyObject!, forAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
    func removeValuesForAttribute(_ inAttribute: String!, error outError: NSErrorPointer) -> Bool
    func addValue(_ inValue: AnyObject!, toAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
    func removeValue(_ inValue: AnyObject!, fromAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
    func deleteRecordAndReturnError(_ outError: NSErrorPointer) -> Bool
    func policiesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func effectivePoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func supportedPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func setPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
    func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!, error error: NSErrorPointer) -> Bool
    func removePolicy(_ policy: ODPolicyType!, error error: NSErrorPointer) -> Bool
    func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!, error error: NSErrorPointer) -> Bool
    func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!, error error: NSErrorPointer) -> Bool
    func setAccountPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
    func accountPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
    func authenticationAllowedAndReturnError(_ error: NSErrorPointer) -> Bool
    func passwordChangeAllowed(_ newPassword: String!, error error: NSErrorPointer) -> Bool
    func willPasswordExpire(_ willExpireIn: UInt64) -> Bool
    func willAuthenticationsExpire(_ willExpireIn: UInt64) -> Bool
    var secondsUntilPasswordExpires: Int64 { get }
    var secondsUntilAuthenticationsExpire: Int64 { get }
}
extension ODRecord {
    func addMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
    func removeMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
    func isMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
}
To
class ODRecord : NSObject {
    func setNodeCredentials(_ inUsername: String!, password inPassword: String!) throws
    func setNodeCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws
    func setNodeCredentialsUsingKerberosCache(_ inCacheName: String!) throws
    func passwordPolicy() throws -> [NSObject : AnyObject]
    func verifyPassword(_ inPassword: String!) throws
    func verifyExtendedWithAuthenticationType(_ inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws
    func changePassword(_ oldPassword: String!, toPassword newPassword: String!) throws
    func synchronize() throws
    var recordType: String! { get }
    var recordName: String! { get }
    func recordDetailsForAttributes(_ inAttributes: [AnyObject]!) throws -> [NSObject : AnyObject]
    func valuesForAttribute(_ inAttribute: String!) throws -> [AnyObject]
    func setValue(_ inValueOrValues: AnyObject!, forAttribute inAttribute: String!) throws
    func removeValuesForAttribute(_ inAttribute: String!) throws
    func addValue(_ inValue: AnyObject!, toAttribute inAttribute: String!) throws
    func removeValue(_ inValue: AnyObject!, fromAttribute inAttribute: String!) throws
    func deleteRecord() throws
    func policies() throws -> [NSObject : AnyObject]
    func effectivePolicies() throws -> [NSObject : AnyObject]
    func supportedPolicies() throws -> [NSObject : AnyObject]
    func setPolicies(_ policies: [NSObject : AnyObject]!) throws
    func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!) throws
    func removePolicy(_ policy: ODPolicyType!) throws
    func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!) throws
    func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!) throws
    func setAccountPolicies(_ policies: [NSObject : AnyObject]!) throws
    func accountPolicies() throws -> [NSObject : AnyObject]
    func authenticationAllowed() throws
    func passwordChangeAllowed(_ newPassword: String!) throws
    func willPasswordExpire(_ willExpireIn: UInt64) -> Bool
    func willAuthenticationsExpire(_ willExpireIn: UInt64) -> Bool
    var secondsUntilPasswordExpires: Int64 { get }
    var secondsUntilAuthenticationsExpire: Int64 { get }
}
extension ODRecord {
    func addMemberRecord(_ inRecord: ODRecord!) throws
    func removeMemberRecord(_ inRecord: ODRecord!) throws
    func isMemberRecord(_ inRecord: ODRecord!) throws
}

Declaration
From
func accountPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func accountPolicies() throws -> [NSObject : AnyObject]

Declaration
From
func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!, error error: NSErrorPointer) -> Bool
To
func addAccountPolicy(_ policy: [NSObject : AnyObject]!, toCategory category: String!) throws

Declaration
From
func addMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
To
func addMemberRecord(_ inRecord: ODRecord!) throws

Declaration
From
func addValue(_ inValue: AnyObject!, toAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
To
func addValue(_ inValue: AnyObject!, toAttribute inAttribute: String!) throws

Declaration
From
func authenticationAllowedAndReturnError(_ error: NSErrorPointer) -> Bool
To
func authenticationAllowed() throws

Declaration
From
func changePassword(_ oldPassword: String!, toPassword newPassword: String!, error outError: NSErrorPointer) -> Bool
To
func changePassword(_ oldPassword: String!, toPassword newPassword: String!) throws

Declaration
From
func deleteRecordAndReturnError(_ outError: NSErrorPointer) -> Bool
To
func deleteRecord() throws

Declaration
From
func effectivePoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func effectivePolicies() throws -> [NSObject : AnyObject]

Declaration
From
func isMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
To
func isMemberRecord(_ inRecord: ODRecord!) throws

Declaration
From
func passwordChangeAllowed(_ newPassword: String!, error error: NSErrorPointer) -> Bool
To
func passwordChangeAllowed(_ newPassword: String!) throws

Declaration
From
func policiesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func policies() throws -> [NSObject : AnyObject]

Declaration
From
func recordDetailsForAttributes(_ inAttributes: [AnyObject]!, error outError: NSErrorPointer) -> [NSObject : AnyObject]!
To
func recordDetailsForAttributes(_ inAttributes: [AnyObject]!) throws -> [NSObject : AnyObject]

Declaration
From
func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!, error error: NSErrorPointer) -> Bool
To
func removeAccountPolicy(_ policy: [NSObject : AnyObject]!, fromCategory category: String!) throws

Declaration
From
func removeMemberRecord(_ inRecord: ODRecord!, error outError: NSErrorPointer) -> Bool
To
func removeMemberRecord(_ inRecord: ODRecord!) throws

Declaration
From
func removePolicy(_ policy: ODPolicyType!, error error: NSErrorPointer) -> Bool
To
func removePolicy(_ policy: ODPolicyType!) throws

Declaration
From
func removeValue(_ inValue: AnyObject!, fromAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
To
func removeValue(_ inValue: AnyObject!, fromAttribute inAttribute: String!) throws

Declaration
From
func removeValuesForAttribute(_ inAttribute: String!, error outError: NSErrorPointer) -> Bool
To
func removeValuesForAttribute(_ inAttribute: String!) throws

Declaration
From
func setAccountPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
To
func setAccountPolicies(_ policies: [NSObject : AnyObject]!) throws

Declaration
From
func setNodeCredentials(_ inUsername: String!, password inPassword: String!, error outError: NSErrorPointer) -> Bool
To
func setNodeCredentials(_ inUsername: String!, password inPassword: String!) throws

Declaration
From
func setNodeCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
To
func setNodeCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws

Declaration
From
func setPolicies(_ policies: [NSObject : AnyObject]!, error error: NSErrorPointer) -> Bool
To
func setPolicies(_ policies: [NSObject : AnyObject]!) throws

Declaration
From
func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!, error error: NSErrorPointer) -> Bool
To
func setPolicy(_ policy: ODPolicyType!, value value: AnyObject!) throws

Declaration
From
func setValue(_ inValueOrValues: AnyObject!, forAttribute inAttribute: String!, error outError: NSErrorPointer) -> Bool
To
func setValue(_ inValueOrValues: AnyObject!, forAttribute inAttribute: String!) throws

Declaration
From
func supportedPoliciesAndReturnError(_ error: NSErrorPointer) -> [NSObject : AnyObject]!
To
func supportedPolicies() throws -> [NSObject : AnyObject]

Declaration
From
func synchronizeAndReturnError(_ outError: NSErrorPointer) -> Bool
To
func synchronize() throws

Declaration
From
func valuesForAttribute(_ inAttribute: String!, error outError: NSErrorPointer) -> [AnyObject]!
To
func valuesForAttribute(_ inAttribute: String!) throws -> [AnyObject]

Declaration
From
func verifyExtendedWithAuthenticationType(_ inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>, error outError: NSErrorPointer) -> Bool
To
func verifyExtendedWithAuthenticationType(_ inType: String!, authenticationItems inItems: [AnyObject]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>) throws

Declaration
From
func verifyPassword(_ inPassword: String!, error outError: NSErrorPointer) -> Bool
To
func verifyPassword(_ inPassword: String!) throws

Modified ODSession
Declaration
From
class ODSession : NSObject {
    class func defaultSession() -> ODSession!
    convenience init!(options inOptions: [NSObject : AnyObject]!, error outError: NSErrorPointer)
    class func sessionWithOptions(_ inOptions: [NSObject : AnyObject]!, error outError: NSErrorPointer) -> Self!
    init!(options inOptions: [NSObject : AnyObject]!, error outError: NSErrorPointer)
    func nodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
    var configurationTemplateNames: [AnyObject]! { get }
    var mappingTemplateNames: [AnyObject]! { get }
    func configurationAuthorizationAllowingUserInteraction(_ allowInteraction: Bool, error error: NSErrorPointer) -> SFAuthorization!
    func configurationForNodename(_ nodename: String!) -> ODConfiguration!
    func addConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
    func deleteConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
    func deleteConfigurationWithNodename(_ nodename: String!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
}
To
class ODSession : NSObject {
    class func defaultSession() -> ODSession!
    convenience init(options inOptions: [NSObject : AnyObject]!) throws
    class func sessionWithOptions(_ inOptions: [NSObject : AnyObject]!) throws -> Self
    init(options inOptions: [NSObject : AnyObject]!) throws
    func nodeNames() throws -> [AnyObject]
    var configurationTemplateNames: [AnyObject]! { get }
    var mappingTemplateNames: [AnyObject]! { get }
    func configurationAuthorizationAllowingUserInteraction(_ allowInteraction: Bool) throws -> SFAuthorization
    func configurationForNodename(_ nodename: String!) -> ODConfiguration!
    func addConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!) throws
    func deleteConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!) throws
    func deleteConfigurationWithNodename(_ nodename: String!, authorization authorization: SFAuthorization!) throws
}

Declaration
From
func addConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
To
func addConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!) throws

Declaration
From
func configurationAuthorizationAllowingUserInteraction(_ allowInteraction: Bool, error error: NSErrorPointer) -> SFAuthorization!
To
func configurationAuthorizationAllowingUserInteraction(_ allowInteraction: Bool) throws -> SFAuthorization

Declaration
From
func deleteConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
To
func deleteConfiguration(_ configuration: ODConfiguration!, authorization authorization: SFAuthorization!) throws

Declaration
From
func deleteConfigurationWithNodename(_ nodename: String!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
To
func deleteConfigurationWithNodename(_ nodename: String!, authorization authorization: SFAuthorization!) throws

Declaration
From
init!(options inOptions: [NSObject : AnyObject]!, error outError: NSErrorPointer)
To
init(options inOptions: [NSObject : AnyObject]!) throws

Declaration
From
func nodeNamesAndReturnError(_ outError: NSErrorPointer) -> [AnyObject]!
To
func nodeNames() throws -> [AnyObject]

Declaration
From
typealias ODQueryCallback = CFunctionPointer<((ODQuery!, CFArray!, CFError!, UnsafeMutablePointer<Void>) -> Void)>
To
typealias ODQueryCallback = (ODQuery!, CFArray!, CFError!, UnsafeMutablePointer<Void>) -> Void

Declaration
From
func ODQuerySetCallback(_ query: ODQuery!, _ callback: ODQueryCallback, _ userInfo: UnsafeMutablePointer<Void>)
To
func ODQuerySetCallback(_ query: ODQuery!, _ callback: ODQueryCallback!, _ userInfo: UnsafeMutablePointer<Void>)