}
public String getDecryptedText() throws SMSLibException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, NoSuchAlgorithmException
{
KeyManager km = KeyManager.getInstance();
if (km.getKey(getOriginator()) != null) setDataBytes(km.decrypt(getOriginator(), getDataBytes()));
else throw new SMSLibException("Message is not encrypted, have you defined the key in KeyManager?");
return AKey.asString(getDataBytes());
}
}