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
NSDataandNSPortobjects belonging to anNSPortMessageobject. See the Portmessage class specification for more information. - signature:
Authentication data created by the delegate of the peer
NSConnectionobject with Authenticationdataforcomponents:.
Return Value
true if the signature provided is valid for components, otherwise false.
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
Related Documentation
- Distributed Objects Programming Topics