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


func isEnabled() -> Bool

Return Value

TRUE if the identity can authenticate; otherwise, FALSE.


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.