Package org.springside.examples.showcase.ws.client

Examples of org.springside.examples.showcase.ws.client.PasswordCallback


    //定义WSS4JOutInterceptor
    Map<String, Object> outProps = Maps.newHashMap();
    outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
    outProps.put(WSHandlerConstants.USER, "admin");
    outProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST);
    outProps.put(WSHandlerConstants.PW_CALLBACK_REF, new PasswordCallback());
    WSS4JOutInterceptor wss4jOut = new WSS4JOutInterceptor(outProps);

    //将Inteceptor加入factory
    proxyFactory.getOutInterceptors().add(wss4jOut);
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.ws.client.PasswordCallback

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.