private static List<EncryptionType> getEtypes(byte[] data) throws IOException { EtypeInfo info = new EtypeInfo(); info.decode(data); List<EncryptionType> results = new ArrayList<>(); for (EtypeInfoEntry entry : info.getElements()) { results.add(entry.getEtype()); } return results; }
private static List<EncryptionType> getEtypes(byte[] data) throws IOException { EtypeInfo info = new EtypeInfo(); info.decode(data); List<EncryptionType> results = new ArrayList<>(); for (EtypeInfoEntry entry : info.getElements()) { results.add(entry.getEtype()); } return results; }