我正在使用rewritePathFilter将请求分派到下游服务,并且下游服务需要2路SSL。我已经使用正确的JKS选项设置了keyStore和TrustedStore属性,但是下游由于缺少证书而拒绝了所有请求。
void addToDB(String fullName, String number, String uri) {
tinydb = new TinyDB(getApplicationContext());
ArrayList<Contact> postObjects = tinydb.getListObject("CONTACT_KEY", Contact.class);
ArrayList<Contact> arrayList = new ArrayList<>();
for (Object objs : postObjects) {
arrayList.add((Contact) objs);
}
Contact mContact = new Contact();
mContact.setFullName(fullName);
mContact.setPhoneNumber(number);
mContact.setContactProfilePictureURI(uri);
arrayList.add(mContact);
tinydb.putListObject("CONTACT_KEY", arrayList);
}
private List<Contact> getExistedContactList() {
tinydb = new TinyDB(getApplicationContext());
ArrayList<Contact> arrayList;
arrayList = tinydb.getListObject("CONTACT_KEY", Contact.class);
if (arrayList.size() == 0)
return contacts;
else
return arrayList;
}