ODRecordSetNodeCredentials(_:_:_:_:)
Sets node authentication credentials for a given record.
Declaration
func ODRecordSetNodeCredentials(_ record: ODRecordRef!, _ username: CFString!, _ password: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> BoolParameters
- record:
The record.
- username:
The username to use to authenticate with the node.
- password:
The password to use to authenticate with the node.
- error:
An error reference for error details. Can be
NULL.
Return Value
true if the credentials are successfully set; otherwise, false.
Discussion
If you want to set credentials for all references to a node, use ODNodeSetCredentials(_:_:_:_:_:) instead.
If this function fails, the previous credentials are used.
See Also
Working with Records
ODRecordAddMember(_:_:_:)ODRecordAddValue(_:_:_:_:)ODRecordChangePassword(_:_:_:_:)ODRecordContainsMember(_:_:_:)ODRecordCopyDetails(_:_:_:)ODRecordCopyValues(_:_:_:)ODRecordDelete(_:_:)ODRecordGetRecordName(_:)ODRecordGetRecordType(_:)ODRecordGetTypeID()ODRecordRemoveMember(_:_:_:)ODRecordRemoveValue(_:_:_:_:)ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:)ODRecordSetValue(_:_:_:_:)ODRecordSynchronize(_:_:)