question: public void add ( Permission permission ) { if ( ! ( permission instanceof SocketPermission ) ) throw new IllegalArgumentException ( "invalid permission: " + permission ) ; if ( isReadOnly ( ) ) throw new SecurityException ( "attempt to add a Permission to a readonly PermissionCollection" ) ; synchronized ( this ) { perms . add ( 0 , ( SocketPermission ) permission ) ; } }
target:  Adds a permission to the SocketPermissions. The key for the hash is the name in the case of wildcards, or all the IP addresses.