@Test public void testIsSecretClassDifferent() { VaultSecret secret = new VaultSecret("ep", "com.sequenceiq.cloudbreak.service.secret.vault.VaultKvV2Engine", "p"); Assert.assertFalse(underTest.isSecret(gson.toJson(secret))); }
@Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); }
AbstractVaultEngine implements SecretEngine { @Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); } }
AbstractVaultEngine implements SecretEngine { @Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); }  }
AbstractVaultEngine implements SecretEngine { @Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); }  @Override boolean isSecret(String secret); @Override String scarifySecret(String secret); }
AbstractVaultEngine implements SecretEngine { @Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); }  @Override boolean isSecret(String secret); @Override String scarifySecret(String secret);  }