Instance Method

authenticateComponents:withData:

Returns a Boolean value that indicates whether given authentication data is valid for a given set of components.

Declaration

- (BOOL)authenticateComponents:(NSArray *)components withData:(NSData *)signature;

Parameters

components

An array that contains NSData and NSPort objects belonging to an NSPortMessage object. See the NSPortMessage class specification for more information.

authenticationData

Authentication data created by the delegate of the peer NSConnection object with authenticationDataForComponents:.

Return Value

YES if the authenticationData provided is valid for components, otherwise NO.

Discussion

Use this message for validation of incoming messages. An NSConnection object raises an NSFailedAuthenticationException on receipt of a remote message the delegate doesn’t authenticate.

See Also

Authenticating

- authenticationDataForComponents:

Returns an NSData object to be used as an authentication stamp for an outgoing message.

Deprecated