|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.utils.webdav.WebDAVSocketHTTPS
public class WebDAVSocketHTTPS
This class is the implementation of a Socket for use over a HTTPS connection. It's methods are defined in the WebDAVSocket interface.
Constructor Summary | |
---|---|
WebDAVSocketHTTPS(java.lang.String p12filename,
java.lang.String p12passphrase)
A non-empty constructor is required for HTTPS because we need the user to provide the location of the PKCS12 file to be used for authentication, and the password required to open it. |
Method Summary | |
---|---|
void |
close()
3. |
void |
open(java.lang.String host,
int port)
1. |
byte[] |
sendAndReceive(byte[] message)
2. |
java.lang.String |
sendAndReceive(java.lang.String message)
2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDAVSocketHTTPS(java.lang.String p12filename, java.lang.String p12passphrase) throws HTTPMessageException
p12filename
- filename for the PKCS12 file containing the user's
certificate and key for SSL authentication.p12passphrase
- the password of the PKCS12 file.
HTTPMessageException
- on SSL errorMethod Detail |
---|
public void open(java.lang.String host, int port) throws java.io.IOException
WebDAVSocket
open
in interface WebDAVSocket
java.io.IOException
public java.lang.String sendAndReceive(java.lang.String message) throws java.io.IOException
WebDAVSocket
sendAndReceive
in interface WebDAVSocket
message
- client request message
java.io.IOException
public byte[] sendAndReceive(byte[] message) throws java.io.IOException
WebDAVSocket
sendAndReceive
in interface WebDAVSocket
message
- client request message in binary
java.io.IOException
public void close() throws java.io.IOException
WebDAVSocket
close
in interface WebDAVSocket
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |