Commit c8dbe771 authored by Quxl's avatar Quxl

x

parent 81c10c91
......@@ -30,6 +30,7 @@ import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
import org.apache.ws.security.WSConstants;
import org.apache.ws.security.handler.WSHandlerConstants;
import org.apache.wss4j.common.ext.WSPasswordCallback;
import org.springframework.beans.factory.annotation.Value;
......@@ -169,7 +170,7 @@ public class SAPServiceFactory {
Map<String, Object> pro = new HashMap<String, Object>();
pro.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
pro.put(WSHandlerConstants.USER, username);
pro.put(WSHandlerConstants.PASSWORD_TYPE, PasswordType.PasswordText.name());
pro.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
pro.put(WSHandlerConstants.PW_CALLBACK_REF, new CallbackHandler() {
public void handle(Callback[] callbacks) {
for (int i = 0; i < callbacks.length; i++) {
......@@ -183,8 +184,4 @@ public class SAPServiceFactory {
return wss4JOutInterceptor;
}
public enum PasswordType {
PasswordText, PasswordNone, PasswordDigest
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment