|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.security.Access
wt.security.NetAccess
Class that provides wrappers to priviledged network methods using
the wt.security package. This allows applets to perform network
operations that are typically restricted by the sandbox.
Supported API: true
Field Summary |
Fields inherited from class wt.security.Access |
|
Constructor Summary | |
NetAccess()
|
Method Summary | |
void |
connect(URLConnection connection)
Wrapper for URLConnection.connect() method |
(package private) void |
connect0(URLConnection connection)
|
byte[] |
getAddress(InetAddress inetaddress)
Wrapper for InetAddress.getAddress() method |
(package private) byte[] |
getAddress0(InetAddress inetaddress)
|
String |
getHostAddress(InetAddress inetaddress)
Wrapper for InetAddress.getHostAddress() method |
(package private) String |
getHostAddress0(InetAddress inetaddress)
|
String |
getHostName(InetAddress inetaddress)
Wrapper for InetAddress.getHostName() method |
(package private) String |
getHostName0(InetAddress inetaddress)
|
InetAddress |
getLocalHost()
Wrapper for InetAddress.getLocalHost() method Supported API: true |
(package private) InetAddress |
getLocalHost0()
|
static NetAccess |
getNetAccess()
Get instance of NetAccess . |
static NetAccess |
getNetAccess(Frame parentFrame)
Get instance of NetAccess . |
Methods inherited from class wt.security.Access |
checkAccess, checkAccessAll, checkClass, checkClass, checkClass, getAccessImpl, setParentFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NetAccess()
Method Detail |
public static NetAccess getNetAccess(Frame parentFrame)
NetAccess
. This instance can then be used
to perform network operations that are typically restricted by the sandbox.
parentFrame
- the parent frame for security dialog boxes that may be
presented
public static NetAccess getNetAccess()
NetAccess
. This instance can then be used
to perform network operations that are typically restricted by the sandbox.
public void connect(URLConnection connection) throws WTSecurityException, IOException
connection
- the URLConnection object to be connected
WTSecurityException
IOException
void connect0(URLConnection connection) throws WTSecurityException, IOException
WTSecurityException
IOException
public InetAddress getLocalHost() throws WTSecurityException, UnknownHostException
WTSecurityException
UnknownHostException
InetAddress getLocalHost0() throws WTSecurityException, UnknownHostException
WTSecurityException
UnknownHostException
public byte[] getAddress(InetAddress inetaddress) throws WTSecurityException
inetaddress
- the InetAddress object to retrieve address for
WTSecurityException
byte[] getAddress0(InetAddress inetaddress) throws WTSecurityException
WTSecurityException
public String getHostAddress(InetAddress inetaddress) throws WTSecurityException
inetaddress
- the InetAddress object to retrieve address for
WTSecurityException
String getHostAddress0(InetAddress inetaddress) throws WTSecurityException
WTSecurityException
public String getHostName(InetAddress inetaddress) throws WTSecurityException
inetaddress
- the InetAddress object to retrieve address for
WTSecurityException
String getHostName0(InetAddress inetaddress) throws WTSecurityException
WTSecurityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |