test_class.declarator: manager = new HkdfPrfKeyManager()
test_class.modifier: private final
test_class.original_string: private final HkdfPrfKeyManager manager = new HkdfPrfKeyManager();
test_class.type: HkdfPrfKeyManager
test_class.var_name: manager
test_class.declarator: factory =
        manager.keyFactory()
test_class.modifier: private final
test_class.original_string: private final KeyTypeManager.KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey> factory =
        manager.keyFactory();
test_class.type: KeyTypeManager.KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey>
test_class.var_name: factory
test_class.file: java_src/src/test/java/com/google/crypto/tink/prf/HkdfPrfKeyManagerTest.java
test_class.identifier: HkdfPrfKeyManagerTest
test_case.body: @Test
    public void validateKey_invalidKeyVersion_throws() throws Exception {
      HkdfPrfKey key =
          HkdfPrfKey.newBuilder()
              .setVersion(1)
              .setKeyValue(ByteString.copyFrom(Random.randBytes(32)))
              .setParams(HkdfPrfParams.newBuilder().setHash(HashType.SHA256))
              .build();
      try {
        manager.validateKey(key);
        fail();
      } catch (GeneralSecurityException e) {
        // expected
      }
    }
test_case.class_method_signature: HkdfPrfKeyManagerTest.validateKey_invalidKeyVersion_throws()
test_case.full_signature: @Test public void validateKey_invalidKeyVersion_throws()
test_case.identifier: validateKey_invalidKeyVersion_throws
test_case.invocations: build setParams setKeyValue setVersion newBuilder copyFrom randBytes setHash newBuilder validateKey fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateKey_invalidKeyVersion_throws()
focal_class.declarator: MIN_KEY_SIZE = 32
focal_class.modifier: private static final
focal_class.original_string: private static final int MIN_KEY_SIZE = 32;
focal_class.type: int
focal_class.var_name: MIN_KEY_SIZE
focal_class.file: java_src/src/main/java/com/google/crypto/tink/prf/HkdfPrfKeyManager.java
focal_class.identifier: HkdfPrfKeyManager
focal_class.class_method_signature: HkdfPrfKeyManager.convertHash(HashType hashType)
focal_class.full_signature: private static com.google.crypto.tink.subtle.Enums.HashType convertHash(HashType hashType)
focal_class.identifier: convertHash
focal_class.modifiers: private static
focal_class.parameters: (HashType hashType)
focal_class.return: com.google.crypto.tink.subtle.Enums.HashType
focal_class.signature: com.google.crypto.tink.subtle.Enums.HashType convertHash(HashType hashType)
focal_class.class_method_signature: HkdfPrfKeyManager.HkdfPrfKeyManager()
focal_class.full_signature:   HkdfPrfKeyManager()
focal_class.identifier: HkdfPrfKeyManager
focal_class.parameters: ()
focal_class.signature:  HkdfPrfKeyManager()
focal_class.class_method_signature: HkdfPrfKeyManager.getKeyType()
focal_class.full_signature: @Override public String getKeyType()
focal_class.identifier: getKeyType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getKeyType()
focal_class.class_method_signature: HkdfPrfKeyManager.getVersion()
focal_class.full_signature: @Override public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: HkdfPrfKeyManager.keyMaterialType()
focal_class.full_signature: @Override public KeyMaterialType keyMaterialType()
focal_class.identifier: keyMaterialType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyMaterialType
focal_class.signature: KeyMaterialType keyMaterialType()
focal_class.class_method_signature: HkdfPrfKeyManager.validateKey(HkdfPrfKey key)
focal_class.full_signature: @Override public void validateKey(HkdfPrfKey key)
focal_class.identifier: validateKey
focal_class.modifiers: @Override public
focal_class.parameters: (HkdfPrfKey key)
focal_class.return: void
focal_class.signature: void validateKey(HkdfPrfKey key)
focal_class.class_method_signature: HkdfPrfKeyManager.parseKey(ByteString byteString)
focal_class.full_signature: @Override public HkdfPrfKey parseKey(ByteString byteString)
focal_class.identifier: parseKey
focal_class.modifiers: @Override public
focal_class.parameters: (ByteString byteString)
focal_class.return: HkdfPrfKey
focal_class.signature: HkdfPrfKey parseKey(ByteString byteString)
focal_class.class_method_signature: HkdfPrfKeyManager.keyFactory()
focal_class.full_signature: @Override public KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey> keyFactory()
focal_class.identifier: keyFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey>
focal_class.signature: KeyFactory<HkdfPrfKeyFormat, HkdfPrfKey> keyFactory()
focal_class.class_method_signature: HkdfPrfKeyManager.validateKeySize(int keySize)
focal_class.full_signature: private static void validateKeySize(int keySize)
focal_class.identifier: validateKeySize
focal_class.modifiers: private static
focal_class.parameters: (int keySize)
focal_class.return: void
focal_class.signature: void validateKeySize(int keySize)
focal_class.class_method_signature: HkdfPrfKeyManager.validateParams(HkdfPrfParams params)
focal_class.full_signature: private static void validateParams(HkdfPrfParams params)
focal_class.identifier: validateParams
focal_class.modifiers: private static
focal_class.parameters: (HkdfPrfParams params)
focal_class.return: void
focal_class.signature: void validateParams(HkdfPrfParams params)
focal_class.class_method_signature: HkdfPrfKeyManager.register(boolean newKeyAllowed)
focal_class.full_signature: public static void register(boolean newKeyAllowed)
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: (boolean newKeyAllowed)
focal_class.return: void
focal_class.signature: void register(boolean newKeyAllowed)
focal_class.class_method_signature: HkdfPrfKeyManager.staticKeyType()
focal_class.full_signature: public static String staticKeyType()
focal_class.identifier: staticKeyType
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String staticKeyType()
focal_class.class_method_signature: HkdfPrfKeyManager.hkdfSha256Template()
focal_class.full_signature: public static final KeyTemplate hkdfSha256Template()
focal_class.identifier: hkdfSha256Template
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate hkdfSha256Template()
focal_class.superclass: extends KeyTypeManager<HkdfPrfKey>
focal_method.body: @Override
    public void validateKey(HkdfPrfKey key) throws GeneralSecurityException {
      Validators.validateVersion(key.getVersion(), getVersion());
      validateKeySize(key.getKeyValue().size());
      validateParams(key.getParams());
    }
focal_method.class_method_signature: HkdfPrfKeyManager.validateKey(HkdfPrfKey key)
focal_method.full_signature: @Override public void validateKey(HkdfPrfKey key)
focal_method.identifier: validateKey
focal_method.invocations: validateVersion getVersion getVersion validateKeySize size getKeyValue validateParams getParams
focal_method.modifiers: @Override public
focal_method.parameters: (HkdfPrfKey key)
focal_method.return: void
focal_method.signature: void validateKey(HkdfPrfKey key)