@Test public void testHs384Template() throws Exception { KeyTemplate template = JwtHmacKeyManager.hs384Template(); assertThat(template.getTypeUrl()).isEqualTo(new JwtHmacKeyManager().getKeyType()); assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW); JwtHmacKeyFormat format = JwtHmacKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry()); assertThat(format.getKeySize()).isEqualTo(48); assertThat(format.getHashType()).isEqualTo(HashType.SHA384); }
public static final KeyTemplate hs384Template() { return createTemplate(48, HashType.SHA384); }
JwtHmacKeyManager extends KeyTypeManager<JwtHmacKey> { public static final KeyTemplate hs384Template() { return createTemplate(48, HashType.SHA384); } }
JwtHmacKeyManager extends KeyTypeManager<JwtHmacKey> { public static final KeyTemplate hs384Template() { return createTemplate(48, HashType.SHA384); } JwtHmacKeyManager(); }
JwtHmacKeyManager extends KeyTypeManager<JwtHmacKey> { public static final KeyTemplate hs384Template() { return createTemplate(48, HashType.SHA384); } JwtHmacKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(JwtHmacKey key); @Override JwtHmacKey parseKey(ByteString byteString); @Override KeyFactory<JwtHmacKeyFormat, JwtHmacKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate hs256Template(); static final KeyTemplate hs384Template(); static final KeyTemplate hs512Template(); }
JwtHmacKeyManager extends KeyTypeManager<JwtHmacKey> { public static final KeyTemplate hs384Template() { return createTemplate(48, HashType.SHA384); } JwtHmacKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(JwtHmacKey key); @Override JwtHmacKey parseKey(ByteString byteString); @Override KeyFactory<JwtHmacKeyFormat, JwtHmacKey> keyFactory(); static void register(boolean newKeyAllowed); static final KeyTemplate hs256Template(); static final KeyTemplate hs384Template(); static final KeyTemplate hs512Template();  }