protected void checkAcceptPermission(AccessControlContext acc){
  SecurityManager sm=System.getSecurityManager();
  if (sm == null) {
    return;
  }
  ConnectionHandler h=threadConnectionHandler.get();
  if (h == null) {
    throw new Error("checkAcceptPermission not in ConnectionHandler thread");
  }
  h.checkAcceptPermission(sm,acc);
}

protected void checkAcceptPermission ( AccessControlContext acc ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) { return ; } ConnectionHandler h = threadConnectionHandler . get ( ) ; if ( h == null ) { throw new Error ( "checkAcceptPermission not in ConnectionHandler thread" ) ; } h . checkAcceptPermission ( sm , acc ) ; }
verify that the current access control context has permission to accept the connection being dispatched by the current thread .
