TLV[] hbciAccounts=filecontent.getFields(HBCIAccount.class);
if (hbciAccounts.length>1) {
// wenn mehrere bankverbindungen existieren, callback f�r auswahl der "richtigen"
StringBuffer possibilities=new StringBuffer();
for (int i=0;i<hbciAccounts.length;i++) {
HBCIAccount hbciAccount=(HBCIAccount)hbciAccounts[i];
if (i!=0) {
possibilities.append("|");
}
possibilities.append(i);
possibilities.append(";"+hbciAccount.getBLZ());
possibilities.append(";"+hbciAccount.getUserId());
}
HBCIUtilsInternal.getCallback().callback(
this,
HBCICallback.NEED_SIZENTRY_SELECT,
"*** select one of the following entries",
HBCICallback.TYPE_TEXT,
possibilities);
this.entryIdx=Integer.parseInt(possibilities.toString());
}
TLV[] accountFields=filecontent.getFields(HBCIAccount.class);
if (accountFields.length!=0) {
// set all passport values
HBCIAccount hbciAccount=(HBCIAccount)(accountFields[entryIdx]);
setCountry(hbciAccount.getCountry());
setBLZ(hbciAccount.getBLZ());
setHost(hbciAccount.getHost());
setUserId(hbciAccount.getUserId());
setCustomerId(hbciAccount.getCustomerId());
setSysId(hbciAccount.getSysId());
setSigId(new Long(hbciAccount.getSigId()));
// setInstKeys()
setInstSigKey(filecontent.getBankSigKey(hbciAccount));
setInstEncKey(filecontent.getBankEncKey(hbciAccount));
// setUserSigKeys()
HBCIKey[] userkeys=hbciAccount.getUserSigKeys();
if (userkeys!=null) {
setMyPublicSigKey(userkeys[0]);
setMyPrivateSigKey(userkeys[1]);
}
// setUserEncKeys()
userkeys=hbciAccount.getUserEncKeys();
if (userkeys!=null) {
setMyPublicEncKey(userkeys[0]);
setMyPrivateEncKey(userkeys[1]);
}
}