Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Bean
- public KeyStoreCallbackHandler callback() throws Exception{
- KeyStoreCallbackHandler callbackHandler = new KeyStoreCallbackHandler();
- callbackHandler.setPrivateKeyPassword("softnet_passwordo");
- callbackHandler.setKeyStore(keyStoreFactoryBean());
- callbackHandler.setTrustStore(keyStoreFactoryBean());
- return callbackHandler;
- }
- @Bean
- public XwsSecurityInterceptor securityInterceptor() {
- XwsSecurityInterceptor securityInterceptor = new XwsSecurityInterceptor();
- securityInterceptor.setPolicyConfiguration(new ClassPathResource("securityPolicy.xml"));
- try{
- securityInterceptor.setCallbackHandler(callback());
- }
- catch (Exception e) {
- System.out.println("display Expensionm: " + e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement