public class WebClientExtensions extends Object
WebClientExtensions holds factory methods for server and client parameters.| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_FILTERS_TYPE_EXCLUDES
The Constant DEFAULT_FILTERS_TYPE_EXCLUDES.
|
static String[] |
DEFAULT_FILTERS_TYPE_INCLUDES
The Constant DEFAULT_FILTERS_TYPE_INCLUDES.
|
| Constructor and Description |
|---|
WebClientExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.cxf.configuration.security.FiltersType |
newCipherSuitesFilter()
Factory method for create a new
FiltersType with the default includes and excludes. |
static org.apache.cxf.configuration.security.FiltersType |
newCipherSuitesFilter(String[] includes,
String[] excludes)
Factory method for create a new
FiltersType from the given includes and excludes. |
static org.apache.cxf.configuration.security.ClientAuthentication |
newClientAuthentication(boolean want,
boolean required)
Factory method for create a new
ClientAuthentication from the given parameters. |
static org.apache.cxf.transports.http.configuration.HTTPClientPolicy |
newHTTPClientPolicy(Long connectionTimeout,
boolean allowChunking,
Long receiveTimeout)
Factory method for create a new
HTTPClientPolicy object from the given parameters. |
static org.apache.cxf.jaxrs.JAXRSServerFactoryBean |
newJAXRSServerFactoryBean(String serverConfigFile,
String baseUrl)
Factory method for create a new
JAXRSServerFactoryBean from the given parameters. |
static KeyStore |
newKeyStore(String type,
String password,
File keystoreFile)
Deprecated.
use instead same name method of KeyStoreFactory from project crypt-data.
Note: will be removed in the next minor release.
|
static org.apache.cxf.configuration.jsse.TLSClientParameters |
newTLSClientParameters(File keystoreDir,
String keystoreFilename,
String keystoreType,
String keystorePassword)
Factory method for create a new
TLSServerParameters from the given parameters. |
static org.apache.cxf.configuration.jsse.TLSClientParameters |
newTLSClientParameters(File trustManagersKeystoreFile,
String trustManagerAlgorithm,
String trustManagersKeystoreType,
String trustManagersKeystorePassword,
File keyManagersKeystoreFile,
String keyManagerAlgorithm,
String keyManagersKeystoreType,
String keyManagersKeystorePassword,
org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter,
boolean disableCNCheck)
Factory method for create a new
TLSClientParameters from the given parameters. |
static org.apache.cxf.configuration.jsse.TLSServerParameters |
newTLSServerParameters(File trustManagersKeystoreFile,
String trustManagerAlgorithm,
String trustManagersKeystoreType,
String trustManagersKeystorePassword,
File keyManagersKeystoreFile,
String keyManagerAlgorithm,
String keyManagersKeystoreType,
String keyManagersKeystorePassword,
org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter,
org.apache.cxf.configuration.security.ClientAuthentication clientAuthentication)
Factory method for create a new
TLSServerParameters from the given parameters. |
static KeyManager[] |
resolveKeyManagers(String type,
String password,
File keystoreFile,
String keyManagerAlgorithm)
Deprecated.
use instead same name method of KeyTrustExtensions from project crypt-core.
Note: will be removed in the next minor release.
|
static TrustManager[] |
resolveTrustManagers(String type,
String password,
File keystoreFile,
String trustManagerAlgorithm)
Deprecated.
use instead same name method of KeyTrustExtensions from project crypt-core.
Note: will be removed in the next minor release.
|
static void |
setClientConfiguration(Object client,
File trustManagersKeystoreFile,
String trustManagerAlgorithm,
String trustManagersKeystoreType,
String trustManagersKeystorePassword,
File keyManagersKeystoreFile,
String keyManagerAlgorithm,
String keyManagersKeystoreType,
String keyManagersKeystorePassword,
org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter,
boolean disableCNCheck)
Sets the client configuration.
|
static void |
setMockClientAuthentication(Object client)
Sets a mock client authentication to the given client.
|
static void |
setTLSClientParameters(Object client,
org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
Sets the TLS client parameters.
|
public static final String[] DEFAULT_FILTERS_TYPE_EXCLUDES
public static final String[] DEFAULT_FILTERS_TYPE_INCLUDES
public static org.apache.cxf.configuration.security.FiltersType newCipherSuitesFilter()
FiltersType with the default includes and excludes.FiltersType with the default includes set.public static org.apache.cxf.configuration.security.FiltersType newCipherSuitesFilter(String[] includes, String[] excludes)
FiltersType from the given includes and excludes.includes - the includesexcludes - the excludesFiltersType with the given includes set.public static org.apache.cxf.configuration.security.ClientAuthentication newClientAuthentication(boolean want,
boolean required)
ClientAuthentication from the given parameters.want - the wantrequired - the requiredClientAuthentication from the given parameters.public static org.apache.cxf.transports.http.configuration.HTTPClientPolicy newHTTPClientPolicy(Long connectionTimeout, boolean allowChunking, Long receiveTimeout)
HTTPClientPolicy object from the given parameters.connectionTimeout - the connection timeoutallowChunking - the allow chunkingreceiveTimeout - the receive timeoutHTTPClientPolicy.public static org.apache.cxf.jaxrs.JAXRSServerFactoryBean newJAXRSServerFactoryBean(String serverConfigFile, String baseUrl)
JAXRSServerFactoryBean from the given parameters.
Service and resource classes have to be added.serverConfigFile - the server config filebaseUrl - the base urlJAXRSServerFactoryBean from the given parameters.@Deprecated public static KeyStore newKeyStore(String type, String password, File keystoreFile) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
KeyStore object from the given file.type - the type of the keystorepassword - the password of the keystorekeystoreFile - the keystore fileKeyStore objectNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionpublic static org.apache.cxf.configuration.jsse.TLSClientParameters newTLSClientParameters(File keystoreDir, String keystoreFilename, String keystoreType, String keystorePassword) throws UnrecoverableKeyException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, KeyStoreException, IOException
TLSServerParameters from the given parameters.keystoreDir - the keystore dirkeystoreFilename - the keystore filenamekeystoreType - the keystore typekeystorePassword - the keystore passwordTLSServerParameters.UnrecoverableKeyException - the unrecoverable key exceptionNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionKeyStoreException - the key store exceptionIOException - Signals that an I/O exception has occurred.public static org.apache.cxf.configuration.jsse.TLSClientParameters newTLSClientParameters(File trustManagersKeystoreFile, String trustManagerAlgorithm, String trustManagersKeystoreType, String trustManagersKeystorePassword, File keyManagersKeystoreFile, String keyManagerAlgorithm, String keyManagersKeystoreType, String keyManagersKeystorePassword, org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter, boolean disableCNCheck) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, UnrecoverableKeyException
TLSClientParameters from the given parameters.trustManagersKeystoreFile - the trust managers keystore filetrustManagerAlgorithm - the trust manager algorithmtrustManagersKeystoreType - the trust managers keystore typetrustManagersKeystorePassword - the trust managers keystore passwordkeyManagersKeystoreFile - the key managers keystore filekeyManagerAlgorithm - the key manager algorithmkeyManagersKeystoreType - the key managers keystore typekeyManagersKeystorePassword - the key managers keystore passwordcipherSuitesFilter - the cipher suites filterdisableCNCheck - the disable CN checkTLSClientParameters.NoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionUnrecoverableKeyException - the unrecoverable key exceptionpublic static org.apache.cxf.configuration.jsse.TLSServerParameters newTLSServerParameters(File trustManagersKeystoreFile, String trustManagerAlgorithm, String trustManagersKeystoreType, String trustManagersKeystorePassword, File keyManagersKeystoreFile, String keyManagerAlgorithm, String keyManagersKeystoreType, String keyManagersKeystorePassword, org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter, org.apache.cxf.configuration.security.ClientAuthentication clientAuthentication) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, UnrecoverableKeyException
TLSServerParameters from the given parameters.trustManagersKeystoreFile - the trust managers keystore filetrustManagerAlgorithm - the trust manager algorithmtrustManagersKeystoreType - the trust managers keystore typetrustManagersKeystorePassword - the trust managers keystore passwordkeyManagersKeystoreFile - the key managers keystore filekeyManagerAlgorithm - the key manager algorithmkeyManagersKeystoreType - the key managers keystore typekeyManagersKeystorePassword - the key managers keystore passwordcipherSuitesFilter - the cipher suites filterclientAuthentication - the client authenticationTLSServerParameters.KeyStoreException - the key store exceptionNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.UnrecoverableKeyException - the unrecoverable key exception@Deprecated public static KeyManager[] resolveKeyManagers(String type, String password, File keystoreFile, String keyManagerAlgorithm) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, UnrecoverableKeyException
KeyManager array from the keystore that is resolved from the given
parameters.type - the typepassword - the passwordkeystoreFile - the keystore filekeyManagerAlgorithm - the key manager algorithmNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionUnrecoverableKeyException - the unrecoverable key exception@Deprecated public static TrustManager[] resolveTrustManagers(String type, String password, File keystoreFile, String trustManagerAlgorithm) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
TrustManager array from the keystore that is resolved from the given
parameters.type - the typepassword - the passwordkeystoreFile - the keystore filetrustManagerAlgorithm - the trust manager algorithmNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionpublic static void setClientConfiguration(Object client, File trustManagersKeystoreFile, String trustManagerAlgorithm, String trustManagersKeystoreType, String trustManagersKeystorePassword, File keyManagersKeystoreFile, String keyManagerAlgorithm, String keyManagersKeystoreType, String keyManagersKeystorePassword, org.apache.cxf.configuration.security.FiltersType cipherSuitesFilter, boolean disableCNCheck) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, UnrecoverableKeyException
client - the clienttrustManagersKeystoreFile - the trust managers keystore filetrustManagerAlgorithm - the trust manager algorithmtrustManagersKeystoreType - the trust managers keystore typetrustManagersKeystorePassword - the trust managers keystore passwordkeyManagersKeystoreFile - the key managers keystore filekeyManagerAlgorithm - the key manager algorithmkeyManagersKeystoreType - the key managers keystore typekeyManagersKeystorePassword - the key managers keystore passwordcipherSuitesFilter - the cipher suites filterdisableCNCheck - the disable CN checkNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionUnrecoverableKeyException - the unrecoverable key exceptionpublic static void setMockClientAuthentication(Object client)
client - the new mock client authenticationpublic static void setTLSClientParameters(Object client, org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
client - the clienttlsClientParameters - the tls client parametersCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.