Contents

setCredential(_:type:)

Sets an application-provided credential to be used when evaluating authentication.

Declaration

func setCredential(_ credential: Data?, type: LACredentialType) -> Bool

Parameters

  • credential:

    The credential to be used when evaluating the authentication context.

    Setting this parameter to nil removes any existing credential of the specified type.

  • type:

    The type of the specified credential. For possible values, see Lacredentialtype.

Return Value

true if the credential was set, otherwise false.

See Also

Managing credentials