Authenticated NSConnections

  • I have a server application which registers an NSConnection using a
    unique name.  My client application connects with the server by looking
    for this connection name, typical DO.  But the problem is, I don't want
    just any application that knows the server's connection name to connect
    to it.  I'd like to have some kind of authentication between the server
    and client.  Is there a built-in method for this, or should I just
    implement an authenticating hello message?  I saw the
    authenticateComponents:withData: delegate methods in NSConnection.  Is
    that what these are for?  If so, how are they used?