Throw UnsupportedPacketVersionException for unknown S2K identifiers
break;
default:
- throw new IllegalStateException("Invalid S2K type: " + type);
+ throw new UnsupportedPacketVersionException("Invalid S2K type: " + type);
}
}
