X509Certificate[] certs, KeyBindingAbstractType abstractType) {
KeyInfo keyInfo = new KeyInfo(doc);
for (Iterator iterator = respondWiths.iterator(); iterator.hasNext();) {
RespondWith respondWith = (RespondWith) iterator.next();
if (respondWith.equals(RespondWith.KEY_NAME)) {
KeyName keyName = new KeyName(doc, aliase);
keyInfo.add(keyName);
} else if (respondWith.equals(RespondWith.KEY_VALUE)) {
PublicKey publicKey = certs[0].getPublicKey();
KeyValue keyValue = new KeyValue(doc, publicKey);
keyInfo.add(keyValue);
} else if (respondWith.equals(RespondWith.X_509_CERT)) {
addX509Certificate(certs[0], keyInfo);
} else if (respondWith.equals(RespondWith.X_509_CHAIN)) {
for (int i = 0; i < certs.length; i++) {
addX509Certificate(certs[i], keyInfo);
}
} else {