Package org.springframework.ws.soap.security.support

Examples of org.springframework.ws.soap.security.support.KeyStoreFactoryBean


    @Before
    public void setUp() throws Exception {
        callbackHandler = new KeyStoreCallbackHandler();
        callback = new WSPasswordCallback("secretkey", WSPasswordCallback.SECRET_KEY);

        KeyStoreFactoryBean factory = new KeyStoreFactoryBean();
        factory.setLocation(new ClassPathResource("private.jks"));
        factory.setPassword("123456");
        factory.setType("JCEKS");
        factory.afterPropertiesSet();
        KeyStore keyStore = factory.getObject();
        callbackHandler.setKeyStore(keyStore);
        callbackHandler.setSymmetricKeyPassword("123456");
    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.security.support.KeyStoreFactoryBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.