Contents

ODRecordSetNodeCredentials(_:_:_:_:)

Sets node authentication credentials for a given record.

Declaration

func ODRecordSetNodeCredentials(_ record: ODRecordRef!, _ username: CFString!, _ password: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

  • 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