test_class.file: configuration-lib/src/test/java/ee/ria/DigiDoc/configuration/verify/SignatureVerifierTest.java
test_class.identifier: SignatureVerifierTest
test_case.body: @Test
      public void verifyInvalidSignature() {
          String configJson = FileUtils.readFileContent(getClass().getClassLoader().getResourceAsStream("config.json"));
          byte[] configSignature = FileUtils.readFileContentBytes(getClass().getClassLoader().getResourceAsStream("config.rsa"));
          String configSignaturePublicKey = FileUtils.readFileContent(getClass().getClassLoader().getResourceAsStream("config.pub"));
          assertFalse(SignatureVerifier.verify(configSignature, configSignaturePublicKey, configJson + "a"));
      }
test_case.class_method_signature: SignatureVerifierTest.verifyInvalidSignature()
test_case.full_signature: @Test public void verifyInvalidSignature()
test_case.identifier: verifyInvalidSignature
test_case.invocations: readFileContent getResourceAsStream getClassLoader getClass readFileContentBytes getResourceAsStream getClassLoader getClass readFileContent getResourceAsStream getClassLoader getClass assertFalse verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void verifyInvalidSignature()
focal_class.file: configuration-lib/src/main/java/ee/ria/DigiDoc/configuration/verify/SignatureVerifier.java
focal_class.identifier: SignatureVerifier
focal_class.class_method_signature: SignatureVerifier.verify(byte[] signature, String publicKeyPEM, String signedContent)
focal_class.full_signature: static boolean verify(byte[] signature, String publicKeyPEM, String signedContent)
focal_class.identifier: verify
focal_class.modifiers: static
focal_class.parameters: (byte[] signature, String publicKeyPEM, String signedContent)
focal_class.return: boolean
focal_class.signature: boolean verify(byte[] signature, String publicKeyPEM, String signedContent)
focal_class.class_method_signature: SignatureVerifier.convertPublicKeyInfoToPublicKey(SubjectPublicKeyInfo publicKeyInfo)
focal_class.full_signature: private static PublicKey convertPublicKeyInfoToPublicKey(SubjectPublicKeyInfo publicKeyInfo)
focal_class.identifier: convertPublicKeyInfoToPublicKey
focal_class.modifiers: private static
focal_class.parameters: (SubjectPublicKeyInfo publicKeyInfo)
focal_class.return: PublicKey
focal_class.signature: PublicKey convertPublicKeyInfoToPublicKey(SubjectPublicKeyInfo publicKeyInfo)
focal_class.class_method_signature: SignatureVerifier.parsePublicKeyInfo(String PKCS1PublicKeyPEM)
focal_class.full_signature: private static SubjectPublicKeyInfo parsePublicKeyInfo(String PKCS1PublicKeyPEM)
focal_class.identifier: parsePublicKeyInfo
focal_class.modifiers: private static
focal_class.parameters: (String PKCS1PublicKeyPEM)
focal_class.return: SubjectPublicKeyInfo
focal_class.signature: SubjectPublicKeyInfo parsePublicKeyInfo(String PKCS1PublicKeyPEM)
focal_class.class_method_signature: SignatureVerifier.verifySignature(byte[] signatureBytes, PublicKey publicKey, String signedContent)
focal_class.full_signature: private static boolean verifySignature(byte[] signatureBytes, PublicKey publicKey, String signedContent)
focal_class.identifier: verifySignature
focal_class.modifiers: private static
focal_class.parameters: (byte[] signatureBytes, PublicKey publicKey, String signedContent)
focal_class.return: boolean
focal_class.signature: boolean verifySignature(byte[] signatureBytes, PublicKey publicKey, String signedContent)
focal_method.body: static boolean verify(byte[] signature, String publicKeyPEM, String signedContent) {
          SubjectPublicKeyInfo publicKeyInfo = parsePublicKeyInfo(publicKeyPEM);
          PublicKey publicKey = convertPublicKeyInfoToPublicKey(publicKeyInfo);
          return verifySignature(signature, publicKey, signedContent);
      }
focal_method.class_method_signature: SignatureVerifier.verify(byte[] signature, String publicKeyPEM, String signedContent)
focal_method.full_signature: static boolean verify(byte[] signature, String publicKeyPEM, String signedContent)
focal_method.identifier: verify
focal_method.invocations: parsePublicKeyInfo convertPublicKeyInfoToPublicKey verifySignature
focal_method.modifiers: static
focal_method.parameters: (byte[] signature, String publicKeyPEM, String signedContent)
focal_method.return: boolean
focal_method.signature: boolean verify(byte[] signature, String publicKeyPEM, String signedContent)