isEnabled

Returns a Boolean value indicating whether the identity is allowed to authenticate.

Declaration

func isEnabled() -> Bool

Return Value

TRUE if the identity can authenticate; otherwise, FALSE.

Overview

If the identity does not have authentication credentials (a password or certificate), it is not able to log in. However, an identity with authentication credentials does not ensure that it is enabled. Any identity can be disabled.

See Also

Password Authentication

func authenticate(withPassword: String) -> Bool

Returns a Boolean value indicating whether the given password is correct for the identity.

var certificate: SecCertificate?

Returns the public authentication certificate associated with a user identity.