@Override
public boolean get(URIish uri, CredentialItem... items)
throws UnsupportedCredentialItem {
boolean ok = true;
for (int i = 0; i < items.length && ok; i++) {
CredentialItem item = items[i];
if (item instanceof CredentialItem.StringType)
ok = get((CredentialItem.StringType) item);
else if (item instanceof CredentialItem.CharArrayType)
ok = get((CredentialItem.CharArrayType) item);
else if (item instanceof CredentialItem.YesNoType)
ok = get((CredentialItem.YesNoType) item);
else if (item instanceof CredentialItem.InformationalMessage)
ok = get((CredentialItem.InformationalMessage) item);
else
throw new UnsupportedCredentialItem(uri, item.getPromptText());
}
return ok;
}