| Code with Finding: |
class SecureMessagingWrapper {
/**
* Unwraps the apdu buffer <code>rapdu</code> of a response apdu.
*
* @param rapdu buffer containing the response apdu.
* @param len length of the actual response apdu.
*
* @return a new byte array containing the unwrapped buffer.
*/
public byte[] unwrap(byte[] rapdu, int len) {
try {
return unwrapResponseAPDU(rapdu, len);
} catch (GeneralSecurityException gse) {
gse.printStackTrace();
throw new IllegalStateException(gse.toString());
} catch (IOException ioe) {
ioe.printStackTrace();
throw new IllegalStateException(ioe.toString());
}
}
}
|