Neviete mi niekto poradit preco mi tato metoda stale generuje CorbaCAException? Vstupne parametre aj konverzia PK kluca do pola je v poriadku...
ica je premenna typu ICertificationAuthority.
public boolean registerPublicKey(String theHumanName, PublicKey thePk) throws ShareMeException {
boolean aRegistry = false;
try {
byte[] aByteVal = myCryptographyImpl.convertSerializableToByteArray(thePk);
System.out.println("Registering Key");
aRegistry = ica.registerKey(theHumanName, aByteVal, "heslo");
} catch (CorbaCAException ex) {
System.out.println("Error while register key");
Logger.getLogger(SecurityHelperImpl.class.getName()).log(Level.SEVERE, null, ex);
}
System.out.println("Zaregistrovanie kluca pre: " + theHumanName + " hodnota: " + aRegistry);
return aRegistry;
}