Package com.meterware.httpunit
Class HttpsProtocolSupport
- java.lang.Object
-
- com.meterware.httpunit.HttpsProtocolSupport
-
public abstract class HttpsProtocolSupport extends java.lang.Object
Encapsulates support for the HTTPS protocol.- Author:
- Russell Gold
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IBMJSSE_PROVIDER_CLASS
static java.lang.String
IBMSSL_PROTOCOL_HANDLER
static java.lang.String
SunJSSE_PROVIDER_CLASS
static java.lang.String
SunJSSE_PROVIDER_CLASS2
static java.lang.String
SunSSL_PROTOCOL_HANDLER
-
Constructor Summary
Constructors Constructor Description HttpsProtocolSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class
getHttpsProviderClass()
get the Https Provider Class if it's been set already return it - otherwise check with the Security package and take the first available provider if all fails take the default provider classstatic void
useIBM()
use the IBM WebShpere handlersstatic void
useProvider(java.lang.String className, java.lang.String handlerName)
use the given SSL providers - reset the one used so far
-
-
-
Field Detail
-
SunJSSE_PROVIDER_CLASS
public static final java.lang.String SunJSSE_PROVIDER_CLASS
- See Also:
- Constant Field Values
-
SunJSSE_PROVIDER_CLASS2
public static final java.lang.String SunJSSE_PROVIDER_CLASS2
- See Also:
- Constant Field Values
-
SunSSL_PROTOCOL_HANDLER
public static final java.lang.String SunSSL_PROTOCOL_HANDLER
- See Also:
- Constant Field Values
-
IBMJSSE_PROVIDER_CLASS
public static final java.lang.String IBMJSSE_PROVIDER_CLASS
- See Also:
- Constant Field Values
-
IBMSSL_PROTOCOL_HANDLER
public static final java.lang.String IBMSSL_PROTOCOL_HANDLER
- See Also:
- Constant Field Values
-
-
Method Detail
-
useProvider
public static void useProvider(java.lang.String className, java.lang.String handlerName)
use the given SSL providers - reset the one used so far- Parameters:
className
-handlerName
-
-
useIBM
public static void useIBM()
use the IBM WebShpere handlers
-
getHttpsProviderClass
public static java.lang.Class getHttpsProviderClass() throws java.lang.ClassNotFoundException
get the Https Provider Class if it's been set already return it - otherwise check with the Security package and take the first available provider if all fails take the default provider class- Returns:
- the HttpsProviderClass
- Throws:
java.lang.ClassNotFoundException
-
-