test_class.declarator: signManager = new Ed25519PrivateKeyManager()
test_class.modifier: private final
test_class.original_string: private final Ed25519PrivateKeyManager signManager = new Ed25519PrivateKeyManager();
test_class.type: Ed25519PrivateKeyManager
test_class.var_name: signManager
test_class.declarator: factory =
        signManager.keyFactory()
test_class.modifier: private final
test_class.original_string: private final KeyTypeManager.KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey> factory =
        signManager.keyFactory();
test_class.type: KeyTypeManager.KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey>
test_class.var_name: factory
test_class.declarator: verifyManager = new Ed25519PublicKeyManager()
test_class.modifier: private final
test_class.original_string: private final Ed25519PublicKeyManager verifyManager = new Ed25519PublicKeyManager();
test_class.type: Ed25519PublicKeyManager
test_class.var_name: verifyManager
test_class.file: java_src/src/test/java/com/google/crypto/tink/signature/Ed25519PublicKeyManagerTest.java
test_class.identifier: Ed25519PublicKeyManagerTest
test_case.body: @Test
    public void validateKey_wrongVersion() throws Exception {
      Ed25519PublicKey publicKey = signManager.getPublicKey(createPrivateKey());
      Ed25519PublicKey invalidKey = Ed25519PublicKey.newBuilder(publicKey).setVersion(1).build();
      try {
        verifyManager.validateKey(invalidKey);
        fail();
      } catch (GeneralSecurityException e) {
        // expected
      }
    }
test_case.class_method_signature: Ed25519PublicKeyManagerTest.validateKey_wrongVersion()
test_case.full_signature: @Test public void validateKey_wrongVersion()
test_case.identifier: validateKey_wrongVersion
test_case.invocations: getPublicKey createPrivateKey build setVersion newBuilder validateKey fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateKey_wrongVersion()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/signature/Ed25519PublicKeyManager.java
focal_class.identifier: Ed25519PublicKeyManager
focal_class.class_method_signature: Ed25519PublicKeyManager.Ed25519PublicKeyManager()
focal_class.full_signature: public  Ed25519PublicKeyManager()
focal_class.identifier: Ed25519PublicKeyManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Ed25519PublicKeyManager()
focal_class.class_method_signature: Ed25519PublicKeyManager.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: Ed25519PublicKeyManager.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: Ed25519PublicKeyManager.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: Ed25519PublicKeyManager.parseKey(ByteString byteString)
focal_class.full_signature: @Override public Ed25519PublicKey parseKey(ByteString byteString)
focal_class.identifier: parseKey
focal_class.modifiers: @Override public
focal_class.parameters: (ByteString byteString)
focal_class.return: Ed25519PublicKey
focal_class.signature: Ed25519PublicKey parseKey(ByteString byteString)
focal_class.class_method_signature: Ed25519PublicKeyManager.validateKey(Ed25519PublicKey keyProto)
focal_class.full_signature: @Override public void validateKey(Ed25519PublicKey keyProto)
focal_class.identifier: validateKey
focal_class.modifiers: @Override public
focal_class.parameters: (Ed25519PublicKey keyProto)
focal_class.return: void
focal_class.signature: void validateKey(Ed25519PublicKey keyProto)
focal_class.superclass: extends KeyTypeManager<Ed25519PublicKey>
focal_method.body: @Override
    public void validateKey(Ed25519PublicKey keyProto) throws GeneralSecurityException {
      Validators.validateVersion(keyProto.getVersion(), getVersion());
      if (keyProto.getKeyValue().size() != Ed25519Verify.PUBLIC_KEY_LEN) {
        throw new GeneralSecurityException("invalid Ed25519 public key: incorrect key length");
      }
    }
focal_method.class_method_signature: Ed25519PublicKeyManager.validateKey(Ed25519PublicKey keyProto)
focal_method.full_signature: @Override public void validateKey(Ed25519PublicKey keyProto)
focal_method.identifier: validateKey
focal_method.invocations: validateVersion getVersion getVersion size getKeyValue
focal_method.modifiers: @Override public
focal_method.parameters: (Ed25519PublicKey keyProto)
focal_method.return: void
focal_method.signature: void validateKey(Ed25519PublicKey keyProto)