|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--iaik.security.ssl.Utils
Some basic utility methods.
| Field Summary | |
static java.lang.String |
PROPERTYNAME_HTTPS_PROXY_HOST
Constant string "https.proxyHost". |
static java.lang.String |
PROPERTYNAME_HTTPS_PROXY_PORT
Constant string "https.proxyPort". |
| Method Summary | |
static boolean |
equalsBlock(byte[] a,
byte[] b)
Check two blocks for equality. |
static boolean |
equalsBlock(byte[] a,
int aOff,
byte[] b,
int bOff,
int len)
Check two blocks for equality. |
static java.io.BufferedReader |
getASCIIReader(java.io.InputStream in)
Get a reader that returns data from the stream assuming ASCII encoding is used. |
static java.io.PrintWriter |
getASCIIWriter(java.io.OutputStream out)
Get a writer that writes data to the stream in ASCII encoding is used. |
static java.io.PrintWriter |
getASCIIWriter(java.io.OutputStream out,
boolean autoflush)
Get a writer that writes data to the stream in ASCII encoding is used. |
static SSLSocket |
proxyConnect(java.net.InetAddress address,
int port,
SSLContext context)
Connect to the specified host via HTTPS proxy (if set via properties). |
static SSLSocket |
proxyConnect(java.net.InetAddress address,
int port,
SSLContext context,
java.net.InetAddress proxyAddress,
int proxyPort)
|
static SSLSocket |
proxyConnect(java.lang.String address,
int port,
SSLContext context,
java.net.Socket proxySocket)
Connect to the specified host via HTTPS proxy (if set via properties). |
static java.lang.String |
toString(int a)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String PROPERTYNAME_HTTPS_PROXY_HOST
public static final java.lang.String PROPERTYNAME_HTTPS_PROXY_PORT
| Method Detail |
public static boolean equalsBlock(byte[] a,
int aOff,
byte[] b,
int bOff,
int len)
a - the first byte array to be comparedaOff - the offset indicating the start position of the sub-block of ab - the second byte array to be comparedbOff - the offset indicating the start position of the sub-block of blen - the number of bytes to be comparedtrue, if the two sub-blocks are equal, false otherwise
public static boolean equalsBlock(byte[] a,
byte[] b)
a - the first byte array to be comparedb - the second byte array to be comparedtrue, if the two blocks are equal, false otherwisepublic static java.lang.String toString(int a)
public static SSLSocket proxyConnect(java.net.InetAddress address,
int port,
SSLContext context)
throws java.io.IOException
public static SSLSocket proxyConnect(java.lang.String address,
int port,
SSLContext context,
java.net.Socket proxySocket)
throws java.io.IOException
public static SSLSocket proxyConnect(java.net.InetAddress address,
int port,
SSLContext context,
java.net.InetAddress proxyAddress,
int proxyPort)
throws java.io.IOException
public static java.io.BufferedReader getASCIIReader(java.io.InputStream in)
public static java.io.PrintWriter getASCIIWriter(java.io.OutputStream out)
public static java.io.PrintWriter getASCIIWriter(java.io.OutputStream out,
boolean autoflush)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||