|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.net.SocketFactory com.atlassian.crowd.directory.ssl.LdapHostnameVerificationSSLSocketFactory
public class LdapHostnameVerificationSSLSocketFactory
This SocketFactory needs to call
sun.security.ssl.SSLSocketFactoryImpl#trySetHostnameVerification
so it goes out of its way to check for the
sun.security.ssl
implementation of the security classes.
The Mac OS X packaging uses com.sun.net.ssl.internal.ssl
, rather than sun.security
,
so reflection is used to work with both.
Method Summary | |
---|---|
Socket |
createSocket()
|
Socket |
createSocket(InetAddress host,
int port)
|
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
|
Socket |
createSocket(String host,
int port)
|
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort)
|
static SocketFactory |
getDefault()
|
static boolean |
isInSunSslImplementationPackage(Class<?> c,
String expectedName)
The Mac OS X packaging uses com.sun.net.ssl.internal.ssl , rather than sun.security.ssl ,
so this method checks both. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SocketFactory getDefault()
public static boolean isInSunSslImplementationPackage(Class<?> c, String expectedName)
com.sun.net.ssl.internal.ssl
, rather than sun.security.ssl
,
so this method checks both.
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |