Contents

ODNodeSetCredentialsExtended(_:_:_:_:_:_:_:)

Sets credentials for interacting with a node using a specified authentication method.

Declaration

func ODNodeSetCredentialsExtended(_ node: ODNodeRef!, _ recordType: String!, _ authType: String!, _ authItems: CFArray!, _ outAuthItems: UnsafeMutablePointer<Unmanaged<CFArray>?>!, _ outContext: UnsafeMutablePointer<Unmanaged<ODContext>?>!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

  • node:

    The node.

  • recordType:

    The record type that uses the credentials. Can be NULL. The default value is kODRecordTypeUsers.

  • authType:

    The type of authentication to use.

  • authItems:

    An array of CFString or CFData objects to be used in the authentication process.

  • outAuthItems:

    An array of CFData objects returned from the authentication process, if any are returned; NULL otherwise.

  • outContext:

    The proper context if the authentication attempt requires a context; NULL otherwise. If not NULL, then more calls must be made with the Context to continue the authentication.

  • error:

    An error reference for error details. Can be NULL.

Return Value

true if no error occurs; otherwise, false.

Discussion

If this function fails, the previous credentials for the node are used.

This function sets credentials for all references to the node. If you only want to set credentials for a single record referencing the node, use ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:) instead.

See Also

Related Documentation

Working with Nodes