Created
May 9, 2019 12:05
-
-
Save coheigea/4eb3b0d6c452809b95f68bc9cc94b630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); | |
PskStore pskStore = new StaticPskStore("some-identity", keyGenerator.generateKey().getEncoded()); | |
context.getRegistry().bind("pskStore", pskStore); | |
fromF(getProtocol() + "://localhost:%d/TestResource?pskStore=#pskStore", PORT7) | |
.transform(body().prepend("Hello ")); | |
from("direct:psk") | |
.toF(getProtocol() + "://localhost:%d/TestResource?pskStore=#pskStore", PORT7) | |
.to("mock:result"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment