@Test public void testLoadPropertiesFromClasspath() { ExtKeyUsage.loadKeyUsagesFromClasspath(TEST_EXTERNAL_KEYUSAGES); }
static Map<String, KeyUsage> loadKeyUsagesFromClasspath(String resource) { Properties props = new Properties(); try (InputStream in = loadResourceAsStream(resource)) { props.load(in); return registerKeyUsages(props); } catch (IOException | NullPointerException ex) { return null; } }
ExtKeyUsage extends KeyUsage { static Map<String, KeyUsage> loadKeyUsagesFromClasspath(String resource) { Properties props = new Properties(); try (InputStream in = loadResourceAsStream(resource)) { props.load(in); return registerKeyUsages(props); } catch (IOException | NullPointerException ex) { return null; } } }
ExtKeyUsage extends KeyUsage { static Map<String, KeyUsage> loadKeyUsagesFromClasspath(String resource) { Properties props = new Properties(); try (InputStream in = loadResourceAsStream(resource)) { props.load(in); return registerKeyUsages(props); } catch (IOException | NullPointerException ex) { return null; } } protected  ExtKeyUsage(String code, String name); }
ExtKeyUsage extends KeyUsage { static Map<String, KeyUsage> loadKeyUsagesFromClasspath(String resource) { Properties props = new Properties(); try (InputStream in = loadResourceAsStream(resource)) { props.load(in); return registerKeyUsages(props); } catch (IOException | NullPointerException ex) { return null; } } protected  ExtKeyUsage(String code, String name); static KeyUsage valueOfByCode(String code); static Map<String, KeyUsage> entries(); }
ExtKeyUsage extends KeyUsage { static Map<String, KeyUsage> loadKeyUsagesFromClasspath(String resource) { Properties props = new Properties(); try (InputStream in = loadResourceAsStream(resource)) { props.load(in); return registerKeyUsages(props); } catch (IOException | NullPointerException ex) { return null; } } protected  ExtKeyUsage(String code, String name); static KeyUsage valueOfByCode(String code); static Map<String, KeyUsage> entries(); final static KeyUsage DEK; final static KeyUsage ZEK; final static KeyUsage TEK; final static KeyUsage RSAPK; final static KeyUsage RSASK; final static KeyUsage RSASKICC; final static KeyUsage RSASKPIN; final static KeyUsage RSASKTLS; final static KeyUsage TMK; final static KeyUsage ZMK; final static KeyUsage HMACSHA1; final static KeyUsage HMACSHA224; final static KeyUsage HMACSHA256; final static KeyUsage HMACSHA384; final static KeyUsage HMACSHA512; final static KeyUsage TPK; final static KeyUsage ZPK; }