class KeyDataUtil {

    public static boolean isHashicorp(KeyData keyData) {

        return Stream.of(
                        keyData.getHashicorpVaultPublicKeyId(),
                        keyData.getHashicorpVaultPrivateKeyId(),
                        keyData.getHashicorpVaultSecretEngineName(),
                        keyData.getHashicorpVaultSecretName())
                .allMatch(Objects::nonNull);
    }

    private  KeyDataUtil();

}