home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2003 January / maximum-cd-2003-01.iso / Software / Apps / OperawithJava / ow32enen700b1j.exe / OPERA.JAR / opera / LiveConnectPrivilegedActions$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-11-05  |  915 b   |  27 lines

  1. package opera;
  2.  
  3. import java.net.InetAddress;
  4. import java.net.SocketPermission;
  5. import java.net.UnknownHostException;
  6. import java.security.PermissionCollection;
  7. import java.security.PrivilegedAction;
  8.  
  9. class LiveConnectPrivilegedActions$1 implements PrivilegedAction {
  10.    // $FF: synthetic field
  11.    private final PermissionCollection val$permColl;
  12.  
  13.    LiveConnectPrivilegedActions$1(PermissionCollection var1) {
  14.       this.val$permColl = var1;
  15.    }
  16.  
  17.    public Object run() {
  18.       try {
  19.          String var1 = InetAddress.getLocalHost().getHostName();
  20.          this.val$permColl.add(new SocketPermission(var1, "connect,accept"));
  21.       } catch (UnknownHostException var2) {
  22.       }
  23.  
  24.       return null;
  25.    }
  26. }
  27.