if(!hasLoadedKey(username))
throw new PrivateKeyNotInitializedException();
try {
SshPrivateKey pk = (SshPrivateKey) loadedPrivateKeys.get(username);
StringTokenizer blocks = new StringTokenizer(text, "\n");
String plainText = "";
while(blocks.hasMoreTokens()) {
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
cipher.init(Cipher.DECRYPT_MODE, pk.getPrivateKey());
byte[] encrypted = Base64.decode(blocks.nextToken());
byte[] ctext = cipher.doFinal(encrypted);
plainText += new String(ctext);