Fix some 1.6isms and add a missing @Override

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6478 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2011-02-04 21:33:39 +00:00
parent ae6c134546
commit e93459bdb9
@@ -84,7 +84,9 @@ public class AESAuthRequest extends AuthRequest
try {
_contents = SecureUtil.getAESCipher(Cipher.DECRYPT_MODE, _key).doFinal(_contents);
} catch (GeneralSecurityException gse) {
throw new IOException("Failed to decrypt credentials", gse);
IOException ioe = new IOException("Failed to decrypt credentials");
ioe.initCause(gse);
throw ioe;
}
ByteArrayInputStream byteIn = new ByteArrayInputStream(_contents);
@@ -108,13 +110,16 @@ public class AESAuthRequest extends AuthRequest
out.writeInt(encrypted.length);
out.write(encrypted);
} catch (GeneralSecurityException gse) {
throw new IOException("Failed to encrypt credentials", gse);
IOException ioe = new IOException("Failed to encrypt credentials");
ioe.initCause(gse);
throw ioe;
}
}
/**
* Read in our encrypted contents.
*/
@Override
public void readObject (ObjectInputStream in)
throws IOException, ClassNotFoundException
{