Contents

CFURLCopyPassword(_:)

Returns the password of a given URL.

Declaration

func CFURLCopyPassword(_ anURL: CFURL!) -> CFString!

Parameters

  • anURL:

    The CFURL object to examine.

Return Value

The password, or NULL if no password exists. In some cases, this function may also return the empty string (CFSTR("")) if no password exists. You should consider NULL and the empty string to be equivalent. Ownership follows the create rule. See The Create Rule.

See Also

Accessing the Parts of a URL