如何在soap wsdl Java Web服务中检索用户传递的凭据
我正在使用如何在soap wsdl Java Web服务中检索用户传递的凭据,java,web-services,soap,wsdl,Java,Web Services,Soap,Wsdl,我正在使用 Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("username", "password".toC
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("username", "password".toCharArray());
}
});
我现在的问题是如何在Soap webservice Java中检索此凭据?获得解决方案
ArrayList<String> authList = (ArrayList<String>) http_headers.get("Authorization");
arraylistauthlist=(ArrayList)http_headers.get(“授权”);
它返回Base64中的凭据