|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irc.security.prv.SpecificSUNSecuredProvider
Specific secured provider to use with SUN JVM.
| Constructor Summary | |
SpecificSUNSecuredProvider()
|
|
| Method Summary | |
java.awt.FileDialog |
getFileDialog(java.awt.Frame top,
java.lang.String title,
int type)
|
java.io.FileInputStream |
getFileInputStream(java.io.File file)
Get an FileInputStream from a local file. |
java.io.FileOutputStream |
getFileOutputStream(java.io.File file)
Get an FileOutputStream to a local file. |
int |
getFileSize(java.io.File file)
Get the file size. |
java.io.File |
getLoadFile(java.lang.String title)
Open a load file dialog with the given title and return the user choice. |
java.net.InetAddress |
getLocalHost()
Get the local host address. |
java.lang.String |
getName()
Get this provider's name. |
java.io.File |
getSaveFile(java.lang.String title)
Open a save file dialog with the given title and return the user choice. |
java.net.ServerSocket |
getServerSocket(int port)
Get a new ServerSocket. |
java.net.Socket |
getSocket(java.lang.String host,
int port)
Get a new Socket. |
java.lang.String |
resolve(java.net.InetAddress addr)
Perform a dns resolve of the given address. |
boolean |
tryProvider()
Try to use this provider. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpecificSUNSecuredProvider()
| Method Detail |
public java.net.Socket getSocket(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
SecuredProvider
getSocket in interface SecuredProviderhost - server host.port - server port.
java.net.UnknownHostException - is host is not found.
java.io.IOException - if an error occurs.
public java.net.ServerSocket getServerSocket(int port)
throws java.io.IOException
SecuredProvider
getServerSocket in interface SecuredProviderport - local port.
java.io.IOException - if an error occurs.
public java.io.FileInputStream getFileInputStream(java.io.File file)
throws java.io.IOException
SecuredProvider
getFileInputStream in interface SecuredProviderfile - the local file.
java.io.IOException - if an error occurs.public int getFileSize(java.io.File file)
SecuredProvider
getFileSize in interface SecuredProviderfile - the file to get size.
public java.io.FileOutputStream getFileOutputStream(java.io.File file)
throws java.io.IOException
SecuredProvider
getFileOutputStream in interface SecuredProviderfile - the local file.
java.io.IOException - if an error occurs.
public java.awt.FileDialog getFileDialog(java.awt.Frame top,
java.lang.String title,
int type)
public java.io.File getLoadFile(java.lang.String title)
SecuredProvider
getLoadFile in interface SecuredProvidertitle - dialog title.
public java.io.File getSaveFile(java.lang.String title)
SecuredProvider
getSaveFile in interface SecuredProvidertitle - dialog title.
public java.net.InetAddress getLocalHost()
throws java.net.UnknownHostException
SecuredProvider
getLocalHost in interface SecuredProviderjava.net.UnknownHostException - if error occurs.public java.lang.String resolve(java.net.InetAddress addr)
SecuredProvider
resolve in interface SecuredProvideraddr - address to resolve.
public boolean tryProvider()
SecuredProvider
tryProvider in interface SecuredProviderpublic java.lang.String getName()
SecuredProvider
getName in interface SecuredProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||