ms3inc / camel-rest-extensions Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
@Bean
public SSLContextParameters builtin() throws GeneralSecurityException {
TrustManagerFactory managerFactory = TrustManagerFactory
.getInstance(TrustManagerFactory.getDefaultAlgorithm());
managerFactory.init((KeyStore) null);
TrustManagersParameters trustParams = new TrustManagersParameters();
trustParams.setTrustManager(managerFactory.getTrustManagers()[0]);
SSLContextParameters answer = new SSLContextParameters();
answer.setTrustManagers(trustParams);
return answer;
}
@Bean
public UndertowComponent client(SSLContextParameters builtin) {
UndertowComponent answer = new UndertowComponent();
answer.setSslContextParameters(builtin);
return answer;
}
see:
https://access.redhat.com/documentation/en-us/red_hat_amq/6.3/html/security_guide/ssl-sysprops
https://gist.github.com/ravishankarhassain/51ccfbdb350f7ee57a05799655ccd94a
https://camel.apache.org/manual/latest/camel-configuration-utilities.html
https://stackoverflow.com/questions/19005318/implementing-x509trustmanager-passing-on-part-of-the-verification-to-existing/19005844#19005844
https://stackoverflow.com/questions/24555890/using-a-custom-truststore-in-java-as-well-as-the-default-one
https://stackoverflow.com/questions/31920719/getting-the-trusted-x509certificate-for-a-java-sslsocket
https://github.com/square/okhttp/blob/okhttp_4.9.x/okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
Currently the validators only validate with contentType.equals("application/xml")
and contentType.equals("application/json")
. Need to add multipart request support and investigate what multipart support the swagger-request-validator has.
The following may be helpful for the OpenApi4J validation:
Using the archetype with camel-rest-extensions, when migrating APIs where the specification paths cannot be changed, this path pattern collision issue sometimes occurs. There may be other bugs but this seems to be the most common one.
Since openapi4j is archived, it means there's no support for fixing bugs like this.
Alternative libraries:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.