Instance Method

setCredential:type:

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

Declaration

- (BOOL)setCredential:(NSData *)credential type:(LACredentialType)type;

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

YES if the credential was set, otherwise NO.

See Also

Managing Credentials

- isCredentialSet:

Returns a Boolean value indicating whether the specified credential type is set.

LACredentialType

The types of credentials to be used for authentication.